(Paper) ICSE Important Questions : Computer Application (2009) Part -5
Disclaimer: This website is NOT associated with CBSE, for official website of CBSE visit - www.cbse.gov.in
Paper : ICSE Important Questions : Computer Application (2009) Part - 5
Q. 1. Write a prog to input a string and two
words and replace first word with second word as in sample example:
Input: hot plate with hot egg
Word 1: hot
Word2: cold
Output: cold plate with cold egg
Q. 2. WAP to input a name and print its
initials as
Input : Vinod
Kumar Khare
Output: (i) V.K.Khare
(ii) Khare, V.K.
(iii) V.K.K.
Q. 3. WAP for following specification:
Class – employee
Data members:
Name , basic salary, da, hra, ta, pf, gross salary
Members methods:
Void get() : to accept name and basic salary of employee.
Void calc(): to calculate the gross salary based on following slab:
Basic salary | da% | ta% | hra% | pf% |
>=20,000 | 53 | 12 | 10 | 8 |
>=10,000-<20,000 | 45 | 15 | 12 | 8 |
<10,000 | 50 | 10 | 15 | 7 |
void display(): to display the following data in given format:
Name | Basic Salary | Gross Salary |
XXX | XXX | XXX |
Now write a main method to create the object of the above class and call the above method to calculate and print the gross salary of an employee.
Q. 4. WAP to input 10 names and sort them alphabetically in ascending order using any suitable sorting technique.
Q. 5. WAP to input name and total marks of 50 students and now input a name and check whether this name exist in list or not , if it is exist then print this name and telephone number in a proper format otherwise print a suitable message to show that name does not exist.
Q. 6. WAP to input a 4X4 matrix and print the minimum and maximum number in 2-Darray.
Q. 7. WAP to print the sum of following
series
X/1! + X2/2! + X3/3! + …………+ Xn/n!
Q. 8. Write a menu driven program for following menu:
- Volume of a cylinder (P r2 h)
- Volume of cuboid ( l * b* h)
- Volume of cube (side3)
Q. 9. Write a program for following
specification:
Class name – student
Data members :
Name , Hindi marks, English marks, maths marks, computer marks, average, grade.
Member methods:
Student( ) : constructor to initialize data members.
Void accept( ) : to accept name and marks in 3 subjects given.
Void calcavg( ): to calculate and store the grade according to following slab:
Average marks grade
>=90
A++
>=75 - <90
A
>=60 – 75
B
<60
C
now write the main method to create the object of the class and call the above
method.
Q. 10. Wap to input name and capital of 10 countries and print them in following format:
COUNTRY
CAPITAL
INDIA
NEW DELHI
NEPAL
KATHMANDU
Xxxx
xxxxx