Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

COMPUTER APPLICATION EXAMINATION

[Class 10] [Date: 30/08/2020] [School: MEA+CLARET+STADS]


[Full Syllabus Exam – 3] [Time: 8:35 AM to 9:35 AM] [Full Marks: 20]
[Email ID: esaby.class10@gmail.com]
INSTRUCTIONS
Make a single copy of your script as a PDF file and send it in the email-id provided in the paper by 10:00
AM. After which mails will not be checked!!

Variable Description Format (Contains 1 Mark):


NAME OF THE VARIABLE SIZE/TYPE OF VARIABLE PURPOSE

ANSWER ALL QUESTIONS

I. Write Java Programs. Variable Listing is required [4*5 = 20]


1. Write a menu driven program to display
(i) first five upper case letters
(ii) last five lower case letters as per the user's choice.
Enter '1' to display upper case letters and enter '2' to display lower case letters.

2. The annual examination result of 50 students in a class is tabulated in a Single Dimensional Array
(SDA) is as follows:
Roll No. Subject A Subject B Subject C

....... ....... ....... .......


....... ....... ....... .......
....... ....... ....... .......
Write a program to read the data, calculate and display the following:
(a) Average marks obtained by each student.
(b) Print the roll number and the average marks of the students whose average is above. 80.
(c) Print the roll number and the average marks of the students whose average is below 40.

3. Special words are those words which start and end with the same letter. Example: EXISTENCE,
COMIC, WINDOW
Palindrome words are those words which read the same from left to right and vice-versa. Example:
MALYALAM, MADAM, LEVEL, ROTATOR, CIVIC
All palindromes are special words but all special words are not palindromes.
Write a program to accept a word. Check and display whether the word is a palindrome or only a special
word or none of them.

4. An electronics shop has announced a special discount on the purchase of Laptops as given below:

Page 1 of 2
Category Discount on Laptop

Up to ₹25,000 5.0%
₹25,001 - ₹50,000 7.5%
₹50,001 - ₹1,00,000 10.0%
More than ₹1,00,000 15.0%

Define a class Laptop described as follows:


Data members/instance variables:
1. name
2. price
3. dis
4. amt
Member Methods:
1. A parameterized constructor to initialize the data members
2. To accept the details (name of the customer and the price)
3. To compute the discount
4. To display the name, discount and amount to be paid after discount.
Write a main method to create an object of the class and call the member methods.

Page 2 of 2

You might also like