Icjecapu 11
Icjecapu 11
Sample Paper 11
ICSE Class X 2024-25
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.
(Do not copy the question, write the correct answers only.)
(ii) The individual positions in a one-dimensional array are also referred to as ______.
(a) Packets (b) Blocks
(c) Subscripts (d) Compartments
(iv) Identify the search algorithm that compares the target key value with the middle element of the array at
each step.
(a) Linear search (b) Binary search
(c) Selection search (d) None of these
(v) What is the process of converting a primitive type to a wrapper object called?
(a) Boxing (b) Unboxing
(c) Autoboxing (d) Type casting
(vi) Which of the following declarations and initializations is equivalent to the following line?
String str = new String();
(a) String str = “ ”; (b) String str = “0”;
(c) String str = null; (d) String str = “\0”;
(vii) The int data type is associated with which wrapper class?
(a) integer (b) float
(c) char (d) double
(xiv) Which of the following can be described as a template or blueprint that defines the state and behavior of
its objects?
(a) Class (b) Array
(c) Graph (d) Decimal
(xvi) Which type of function defines a relationship between input and output?
(a) Pure functions (b) Impure functions
(c) Both (a) and (b) (d) None of the above
(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.
(xviii) Read the following text and choose the correct answer:
Consisting of a block of code or a collection of statements, a method is designed to perform a specific task or
operation. It promotes code reusability by allowing the same method to be written once and used multiple
times, eliminating the need for repetitive code. This approach enhances code readability and simplifies
modifications by allowing easy addition or removal of specific sections 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.
(ii) The following code has some error(s). Rewrite the given code after removing all error(s).
Int i = 5;
System.out.println(“i =” +i)
(v) State the data type and value of b after the following code is executed.
char a = ‘1’;
b = Character.isLetter(a);
(x) Write the Java statement for the following mathematical expression :
q= 1 + 32
a+b c
SECTION B
Attempt any four questions from this section.
QUESTION 3.
Define a class that declares an array of size 20 with double data type, accepts input for the array elements, and
performs the following tasks:
QUESTION 4.
A magic number is a number where the repeated sum of its digits eventually equals 1.
e.g. 172 = 1 + 7 + 2 = 10
10 = 1 + 0 = 1
QUESTION 5.
Define a class Swap that takes two input strings and swaps their values.
Example:
Input:
Enter First String: Hello
QUESTION 6.
Write a Java program that prompts the user to enter the size of an array and its elements, then finds and
displays the smallest element in the array.
Example:
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 :
1
2 2
(i) 3 3 3
4 4 4 4
5 5 5 5 5
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 :