Icjecapu 01
Icjecapu 01
Sample Paper 01
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 process of binding the data and method together as one unit is called as
(a) Dynamic binding (b) Inheritance
(c) Polymorphism (d) Encapsulation
(vii) This term refers to the name assigned to a package, class, interface, method, or variable.
(a) Keyword (b) Token
(c) Literal (d) Identifier
(x) The automatic conversion of a primitive data type into an object of its corresponding wrapper class is called:
(a) auto-boxing (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
(xiv) _____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) Methods (b) Arrays
(c) Constructors (d) Strings
(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 key concept in Object-Oriented Programming (OP) that focuses on representing essential
features while omitting unnecessary background details or explanations..
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.
(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.
(ii) Determine the values of n and m after executing the following code:
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.
(vi) Give the prototype of a function search, which receives a sentence sentc and a word wrd and returns 1 or 0.
(x) How many times will the loop in the following code execute?
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.
QUESTION 4.
Rahul Transport Company charges customers for parcel deliveries based on the following specifications:
QUESTION 5.
QUESTION 6.
Using the switch statement, write a menu driven program for the following :
(i)
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
(ii)
B
B L
B L U
B L U E
QUESTION 7.
A showroom offers the following discounts based on the total cost of items purchased::
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.
Sample Input HELLO WONDERS WORLD
Output Choose F Choose L
H O
W S
W D
******