ICSE Class 10th Computer Applications Sample Paper (4). Sample papers and question papers for ICSE and ISC students. These question papers have been collected by the best teachers from ICSE and ISC schools. Students should download and practice these papers to gain better marks in examinations.
SECTION A
Question 1
(a) Define encapsulation.
(b) Explain the term object using an example.
(c) Define a variable.
(d) What is a wrapper class? Give an example.
(e) What is the purpose of the new operator?
Question 2
(a) State the two kinds of data types.
(b) Write the corresponding expressions for the following mathematical operations:-
i. a2 + b2
ii. z = x3 + y3 - xy /z
(c) Define an impure function.
(d) Differentiate between if and switch statements.
(e) What will be the output for the following program segment?
String s = new String("abc");
System.out.println(s.toUpperCase());
Question 3
(a) What is meant by private visibility of a method?
(b) Find and correct the errors in the following program segment:-
int n[ ] = (2,4,6,8,10);
for (int i = 0; i < = 5; i ++)
System.out.println("n[" + i + "] = " + n[i ]);
(c) Explain function overloading with an example.
(d) Find the output of the following program segment, when:
i. val = 500
ii. val = 1600
int val, sum, n = 550;
sum = n + val > l750? 400 : 200;
System.out.println(sum);
(e) What is a default constructor?
(f) What will be the output for the following program segment?
int a = 0, b = 30, c = 40;
a = − −b + c++ + b;
System.out.println("a =" + a);
(g) Differentiate between compareTo( ) and equals( ) methods.
(h) What is a package? Give an example.
(i) Explain the function of a return statement.
SECTION B
Question 4
Write a program to calculate and print the sum of odd numbers and the sum of even numbers for the first n natural numbers. The integer n is to be entered by the user.
Question 5
A cloth showroom has announced the following festival discounts on the purchase of items, based on the total cost of the items purchased:-
Total cost Discount (in Percentage)
Total cost Discount (in Percentage)
Less than Rs. 2000 5%
Rs. 2001 to Rs. 5000 25%
Rs. 5001 to Rs. l0000 35%
Above Rs. 10000 50%
Write a program to input the total cost and to compute and display the amount to be paid by the customer after availing the discount.
Please click below link ICSE Class 10th Computer Applications Sample Paper (4)