0% found this document useful (0 votes)
150 views7 pages

Icjecapu 11

This document is a sample exam paper for 10th grade ICSE Computer Applications. It contains 20 multiple choice questions in Section A testing concepts like arrays, loops, functions, classes, and more. Section B contains 4 longer form questions worth 15 marks each, requiring code snippets or full program definitions. Key concepts covered include arrays, loops, functions, classes, strings, data types, and mathematical/logical expressions. Students are instructed to attempt all of Section A and 4 questions of their choice from Section B.

Uploaded by

meghanamavuru30
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)
150 views7 pages

Icjecapu 11

This document is a sample exam paper for 10th grade ICSE Computer Applications. It contains 20 multiple choice questions in Section A testing concepts like arrays, loops, functions, classes, and more. Section B contains 4 longer form questions worth 15 marks each, requiring code snippets or full program definitions. Key concepts covered include arrays, loops, functions, classes, strings, data types, and mathematical/logical expressions. Students are instructed to attempt all of Section A and 4 questions of their choice from Section B.

Uploaded by

meghanamavuru30
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/ 7

ICSE 10th Computer Applications

Sample Paper 11 Page 1

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

(i) Which of the following is the correct usage?


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

(ii) Cell numbers of a dimensional array are also known as______.


(a) packets (b) blocks
(c) subscripts (d) compartments

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


double b = –15.6;
double a =
Math.rint(Math.abs(b));
System.out.println(a);
(a) 14.0 (b) 15.0
(c) 16.0 (d) 17.0
ICSE 10th Computer Applications Sample Paper 11 Page 2

(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

(v) Conversion from primitive type to wrapper object is called as______.


(a) boxing (b) unboxing
(c) autoboxing (d) type casting

(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”;

(vii) Data type int is included in______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
ICSE 10th Computer Applications Sample Paper 11 Page 3

(ix) What is the return value of equals( )?


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

(x) _______is known as object factory.


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

(xi) Which of the following statements are incorrect?


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

(xii) It is a loop within a loop.


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

(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

(xv) It is used to initialise the property of an object.


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

(xvi) Which 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.
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

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

(xx) Name the type of error in the statement given below


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? [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)

(iii) Rewrite the following code using while loop. [2]


int a, b;
for(a=10, b=4; a<=16; a++, b+=2)
ICSE 10th Computer Applications Sample Paper 11 Page 5

{
System.out.println(“ ” +a--);
}

(iv) Write a function prototype of the following : [2]


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. [2]
char a = ‘8’;
b = Character.isLetter(a);

(vi) Write the output of the following code snippet. [2]


String x ;
String str = “INFORMATION”;
x = str.concat(“PRACTICE”);
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? [2]


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

(viii) Find the output of the following code. [2]


String Fname = “Kareena”,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. [2]


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

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

Taxable Income (TI) in Income Tax in


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

******

You might also like