Download ICSE Computer Application Sample Papers Class X (10th) 2009
Sample Paper - 2009
Class – X
Subject – Computer Applications
(set-5)
Time: 2 hours Full Marks: 100
This paper is divided in to two Sections. Attempt all questions in Section A and any four questions from Section B. The intended marks for the questions or parts thereof are given in brackets([ ]).
Section A (40 marks)
Attempt all questions
1. (a) What are the features of Object - Oriented Programming (OOP)? [5 x 2 = 10]
(b) Which feature of OOP can be characterized by the phrase “one name many interface”? Explain.
(c) What will be the output of the following?
String letters = “abcdefghijklmnabcdefghijklmn”;
String output = “substring method with one argument” + letters.substring(12);
output += “substring method with two arguments” + letters.substring(3, 8 );
System.out.println(output);
(d) Rewrite the given statement using ternary operator
if ( a > b )
p = a – b;
else
p = b – a;
(e) What is bytecode?
2. (a) How can a method be overloaded in Java? [5 x 2 = 10]
(b) Consider the following class:
public class IdentifyMyParts {
public static int x = 7;
public int y = 3;
}
(i) Identify the fields; (ii) Identify the instance variables.
(c) Create an array of arrays containing three arrays. The first array contains 4 elements, the second one has two and the third one has three elements.
(d) What are the different types of constructors used in a class?
(e) What is the difference between break and continue statements in Java?
3. (a) Given the following code what should come at the blank space so that the output is “Outer s”? Justify your answer. [2]
class Test {
public static void main(String[] args) {
Test test = new Test();
test.new InnerTest ( ).f ( );
}
final String s = “Outer s”;
class InnerTest {
Sring s = “Inner s”;
void f ( ) {
System.out.println(Test._____________ );
}
}
}
(b) Assume you have written some classes. Belatedly, you have decided that they should be split into three packages as listed below. Furthermore, assume that the classes are in the default package (they have no package statements).[5]
Download Attached PDF
- English
(517 downloads)