Icjecapu 11
Icjecapu 11
Sample Paper 11
ICSE Class X 2023-24
COMPUTER APPLICATIONS
Time: 2 Hours Max. Marks: 100
General Instructions:
1. Answers to this Paper must be written on the paper provided separately.
2. You will not be allowed to write during the first 15 minutes.
3. This time is to be spent in reading the question paper.
4. The time given at the head of this Paper is the time allowed for writing the answers.
5. This Paper is divided into two Sections.
6. Attempt all questions from Section A and any four questions from Section B.
7. The intended marks for questions or parts of questions are given in brackets [ ].
SECTION - A
Attempt all questions from this part.
QUESTION 1.
Choose the correct answer and write the correct option. [20]
(Do not copy the question, write the correct answers only.)
(iv) Name the search algorithm which compares the sought key value with the key value of the
middle element of the array at each stage.
(a) Linear search (b) Binary search
(c) Selection search (d) None of these
(vi) Which of the following declaration and initialization is the below line equivalent to?
String str = new String();
(a) String str = “ ”; (b) String str = “0”;
(c) String str = null; (d) String str = “\0”;
(xiii) Which of the following keyword is used to create symbolic constants in Java?
(a) final (b) Final
(c) Constant (d) const
(xiv) Which of the following can be defined as a template/blue print that describes the state and
behaviour of its object?
(a) Class (b) Array
(c) Graph (d) Decimal
(xvii) Assertion (A) A function is a block of code that performs a particular task.
Reason (R) Function saves time to write the same code again and again.
(a) Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of
Assertion (A).
(b) Both Assertion (A) and Reason (R) are true and Reason (R) is not a correct explanation
of Assertion (A).
(c) Assertion (A) is true and Reason (R) is false.
(d) Assertion (A) is false and Reason (R) is true.
ICSE 10th Computer Applications Sample Paper 11 Page 4
(xviii) Read the following text and choose the correct answer:
A method is a block of code or collection of statements or a set of code grouped together to
perform a certain task or operation. It is used to achieve the reusability of code. We write
a method once and use it many times. We do not require to write code again and again. It
also provides the easy modification and readability of code, just by adding or removing a
chunk of code.
Which method can be defined only once in a program?
(a) main method (b) finalize method
(c) static method (d) private method
QUESTION 2.
(i) How many times the do-while loop will be executed? [2]
int a, i;
i=0; a=1;
do
{
i++; a++;
} while(a<=5);
System.out.println(“i=” + i + “a=”
+ a);
(ii) The following code has some error(s). Rewrite the given code after removing all error(s).[2]
Int i = 5;
System.out.println(“i =”+ i)
{
System.out.println(“ ” +a--);
}
(v) State the data type and value of b after the following code is executed. [2]
char a = ‘8’;
b = Character.isLetter(a);
(x) Write the Java statement for the following mathematical expression : [2]
q= 1 + 32
a+b c
ICSE 10th Computer Applications Sample Paper 11 Page 6
SECTION - B
Attempt any four questions from this section.
QUESTION 3.
Define a class to declare an array of size 20 of double data type, accept the elements into the
array and perform the following: [15]
Calculate and print the sum of all the elements.
Calculate and print the highest value of the array.
QUESTION 4.
A magic number is a number in which the eventual sum of digits of the number is equal to 1.
e.g. 172 = 1 + 7 + 2 = 10 [15]
10 = 1 + 0 = 1
Then, 172 is a magic number.
Design a class Magic to check, if a given number is a magic number or not.
QUESTION 5.
Define a class Swap which entered two strings and swap them. [15]
e.g. Input Enter First String : Hello
Enter Second String : World
Output Strings after swapping :
String 1 = World
String 2 = Hello
QUESTION 6.
Write a Java program ask to the user to enter array size and array elements to find the smallest
element present in the array. [15]
e.g. Input Array 12, 25, 65, 11, 89, 3
Output 3
QUESTION 7.
In Java, using the switch statement, write a menu driven program for the following : [15]
1
2 2
(i) 3 3 3
4 4 4 4
5 5 5 5 5
ICSE 10th Computer Applications Sample Paper 11 Page 7
H
H E
(ii) H E L
H E L L
H E L L O
QUESTION 8.
Given below is a table showing rates of Income Tax for male citizens below the age of 60 years :
Write a program to input the age, gender (male or female) and Taxable Income of a person. If
the age is more than 60 years or the gender is female, display “wrong category”.
If the age is less than or equal to 60 years and the gender is male, compute and display the
Income Tax payable as per the table given above. [15]
******