0% found this document useful (0 votes)
26 views6 pages

Icjecapu 11

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views6 pages

Icjecapu 11

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

ICSC Class 10 Computer Applications Sample Paper 11 Page 1

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.)

(i) Which of the following is a valid declaration of an array?


(a) Int a[– 40]; (b) int a[40];
(c) Float a[0 – 40]; (d) None of these

(ii) The individual positions in a one-dimensional array are also referred to as ______.
(a) Packets (b) Blocks
(c) Subscripts (d) Compartments

(iii) What is the output of the given code?


double b = -7.3;
double a = Math.rint(Math.abs(b));
System.out.println(a);
(a) 4.0 (b) 5.0
(c) 6.0 (d) 7.0

(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

Continue on next page.....

Install NODIA App to See the Solutions.


Click Here To Install
Page 2 Sample Paper 11 NODIA

(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

(viii) What will be the output of the following program?


class Output
{
public static void main(String
args[])
{
int a[]={6,5,4,3,2,1};
int x;
for(x=5;x>=0;x--)
{
System.out.println(a[x]);
}
}
}
(a) 1 (b) 1 2 3 4 5 6
2
3
4
5
6
1
2
(c) None (d) 3
4
5

(ix) What is the return type of the equals() method?


(a) Char (b) String
(c) Boolean (d) Float

(x) What is referred to as the object factory?


(a) Array (b) Method
(c) Class (d) Data

Continue on next page.....

Install NODIA App to See the Solutions.


Click Here To Install
ICSC Class 10 Computer Applications Sample Paper 11 Page 3

(xi) Which of the following statements is incorrect?


(a) String is a class.
(b) Strings in Java are mutable.
(c) Every string is an object of the String class.
(d) Java provides a peer class to String called StringBuffer, which allows strings to be modified.

(xii) What is a loop called that exists inside another loop?


(a) Inner loop (b) Outer loop
(c) Nested loop (d) Listed loop

(xiii) Which keyword is used to define symbolic constants in Java?


(a) final (b) Final
(c) Constant (d) const

(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

(xv) What is used to initialize the properties of an object?


(a) Array (b) String
(c) Constructor (d) Class

(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

(xix) Assertion (A) : Linear search can be carried on unsorted array.


Reason (R) : Linear search searches an element in a sequential manner.
(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.

Install NODIA App to See the Solutions.


Click Here To Install
Page 4 Sample Paper 11 NODIA

(xx) Identify the type of error in the following statement:


double x; y; z;
(a) Logical error (b) Syntax error
(c) Runtime error (d) No error

QUESTION 2.

(i) How many times the do-while loop will be executed?


int a, i;
i=0; a=1;
do
{
i++; a++;
} while(a<=6);
System.out.println(“i=” + i + “a=”
+ a);

(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)

(iii) Rewrite the following code using while loop.


int x, y;
for(a=10, b=4; x<=16; x++, y+=2)
{
System.out.println(“ ” +x--);
}

(iv) Write a function prototype of the following :


A function abc which takes a string argument and a character argument and returns an integer value.

(v) State the data type and value of b after the following code is executed.
char a = ‘1’;
b = Character.isLetter(a);

(vi) Write the output of the following code snippet.


String x ;
String str = “INDIAN”;
x = str.concat(“ARMY”);
System.out.println(x.length()+
“ ”);
System.out.println(x.toUpperCase
());

(vii) If int x[ ] = {5, 4, 3, 4, 7, 8}; what is the value of q?


q = x[2] +x[5]*x[1]

Continue on next page.....

Install NODIA App to See the Solutions.


Click Here To Install
ICSC Class 10 Computer Applications Sample Paper 11 Page 5

(viii) Find the output of the following code.


String Fname = “Kiara”,Lname
= “Kapoor”;
String = “ ”;
name = Fname + “ ” + Lname;
System.out.println(name);
System.out.println(str
+ name.substring (4));

(ix) Give the output of the following code.


(a) Math. round (5.3) + “ ”;
(b) Math. ceil (4.7)
+ Math.floor (4.7);

(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:

Calculate and print the sum of all the elements.

Calculate and print the highest value in the array.

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

Then, 172 is a magic number.

Design a class Magic to determine whether a given number is a magic number.

QUESTION 5.

Define a class Swap that takes two input strings and swaps their values.
Example:
Input:
Enter First String: Hello

Install NODIA App to See the Solutions.


Click Here To Install
Page 6 Sample Paper 11 NODIA

Enter Second String: World


Output:
Strings after swapping:
String 1 = World
String 2 = 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 :

Taxable Income (TI) in Income Tax in


Does not exceed 1,50,000 Nil
Is greater than 1,50,000 and less than or equal to 4,00,000 (TI – 1,50,000 )*8%
Is greater than 4,00,000 and less than or equal to 8,00,000 [(TI – 4,00,000)*15%] + 30,000
Is greater than 8,00,000 [(TI – 8,00,000)*25%] + 90,000
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.
******

Install NODIA App to See the Solutions.


Click Here To Install

You might also like