Icjecapu 01
Icjecapu 01
Sample Paper 1
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.)
(iii) The process of binding the data and method together as one unit is called as
(a) encapsulation (b) inheritance
(c) polymorphism (d) dynamic binding
ICSE 10th Computer Applications Sample Paper 1 Page 2
(ix) ‘Automatic conversion of primitive data into an object of wrapper class is called
(a) autoboxing (b) explicit conversion
(c) shifting (d) None of the above
(xii) _____members are accessible inside their own class, classes within the package and
subclasses.
(a) Private (b) Protected
(c) Public (d) None of these
(xv) _____are reference types, which hold the reference id of a memory location.
(a) Composite types (b) Primitive types
(c) Attribute types (d) None of the above
(xvi) Which of the following are invoked directly when an object is created?
(a) Strings (b) Arrays
(c) Constructors (d) Methods
(xvii) Assertion (A) Array is a data type which can store multiple homogenous variables.
Reason (R) Elements of array are stored in an indexed manner starting with index 0.
(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.
Abstraction is a concept, which is used to represent essential features without including the
background details or explanations. It is essential concept of Object Oriented Programming
(OOP).
What is an abstraction?
(a) Abstraction is more about ‘What’ a class can do.
(b) Abstraction is more about ‘How’ to achieve that functionality.
(c) It binds data and methods in a single unit.
(d) It implements using private access modifier.
ICSE 10th Computer Applications Sample Paper 1 Page 4
(xix) Assertion (A) The factory of object means a factory that produces the objects.
Reason (R) Class is known as object factory because single class generates a lot of objects.
(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.
QUESTION 2.
(i) If int a[ ] = {7, 3, 4, 8, 9, 2}; what are the values of x and y? [2]
(a) x=a[1]*a[0]+a[3] (b) y=a. length
(ii) Write the value of n and m after execution of the following code. [2]
int m;
int n;
m=5;
n=(5*++m)%3;
System.out.println(“n=”+n+“m=”+m);
(v) Name the primitive data type in Java that is a 64 bits integer and is used when you need a
range of values under than those provided by int. [2]
(vi) Give the prototype of a function search, which receives a sentence sentc and a word wrd and
returns 1 or 0. [2]
ICSE 10th Computer Applications Sample Paper 1 Page 5
(viii) Write a Java statement for the following mathematical expression : [2]
V = 1 πr2 h
3
(x) How many times will the following loop execute? [2]
int x=2, y=50;
do
{
++x;
y— =x++;
}while (x<=10);
return y;
SECTION - B
Attempt any four questions from this section.
QUESTION 3.
Write a program in Java which prints fibonacci series using arrays. [15]
[Hint A series of numbers in which each number (Fibonacci number) is the sum of the two
preceding numbers. The series is 0, 1, 1, 2, 3, 5, 8, etc.]
QUESTION 4.
Anshul transport company charges for the parcels of its customers as per the following
specifications given below [15]
Define a class with the above-mentioned specifications, create the main method, create an object
and invoke the member methods.
QUESTION 5.
Draw the following patterns using switch statement. [15]
(i) A B C D E D C B A
ABCDCBA
ABCBA
ABA
A
(ii) 1
21
321
4321
54321
ICSE 10th Computer Applications Sample Paper 1 Page 7
QUESTION 6.
Using the switch statement, write a menu driven program for the following : [15]
1
B
1 2
B L
(i) 1 2 3 (ii)
B L U
1 2 3 4
B L U E
1 2 3 4 5
QUESTION 7.
A showroom has offered the following occasion discounts on the purchase of items based on the
total cost of the item purchased: [15]
Write a program to input the total cost of the item purchased, discount, amount to be paid after
availing discount.
QUESTION 8.
Write a Java program to display the pattern of the string entered by user. There are two choices
F and L. If user choose F, then first character of each word display. But if user choose L, then
last character of each word display. [15]
Sample Input HELLO WONDERS WORLD
Output Choose F Choose L
H O
W S
W D
******