ICSE Class 10 Computer Science 2009 Question Paper

ICSE Class 10 Computer Science 2009 Question Paper. Students can download the last year question papers using the link below. Free download of examination question papers with solutions. Last 10 year question papers should be practised to get better marks in examinations.

2009 ICSE computer science Question paper

Section A (40 marks)

Attempt all questions

Q1. (a) Name the four integer data types of Java. [2]

(b) What is a “ternary operator” of Java? [2]

(c) What is meant by “nesting of loops”? Give suitable example. [2]

(d) Differentiate between int and float data type. Give one example for each. [2]

(e) What is Polymorphism? Give one example. [2]

Q2. (a) What is meant by “exit controlled loop”? Give one example. [2]

(b) Differentiate between constructor and finalizer with suitable examples for each. [2]

(c) What do you understand by the term “Escape Sequence”? Give two example with proper explanation. [2]

(d) Differentiate between data abstraction and data encapsulation [4]

 

Q 3. (a) Give the output of the following code snippets: [2 + 2 = 4]

(i) int f = 1, i = 2;

do {

f * = i;

i++;

}while ( i < 5 );

System.out.println ( f );

(ii) int a = 0, p;

for( int i = 0; i < 5; ++i ) {

a = a + p * i;

System.out.println( a );

}

(b) Find error(s), if any in the following code snippets: [2 + 2 = 4]

(i) int i [][] = {{1, 2}, {3, 4}};

i [1, 1] = 5;

(ii) int b[] = new int [10];

for ( int i = 0; I <= b.length; ++i )

b[i] = 1;

(c) Create a multidimensional array in which each there are three rows & each row has different

numbers of columns: 1st row has three columns, 2nd row has 2 columns and the last row has 4

columns. [2]

Q4. (a) Write the equivalent do-while loop for the following for loop: [2]

for ( ; ; )

{s; } //s represents any statement

(b) Assume that i = 1, j = 2, k = 3, and m = 2. What does ach of the following statements print? [2]

(i) System.out.println ( k + m < j | 3 – j >= k );

(ii) System.out.println ( ! ( k > m ));

(c) What would happen when the following is compiled and executed? [3 + 3 = 6]

Please click the link below to download pdf file of  ICSE Class 10 Computer Science 2009 Question Paper