ICSE Computer Applications Question Paper 2024
ICSE Computer Applications Question Paper 2024
COMPUTER APPLICATIONS
The time given at the head of this Paper is the time allowed for writing the answers.
m
This Paper is divided into two Sections.
co
Attempt all questions from Section A and any four questions from Section B.
a.
The intended marks for questions or parts of questions are given in brackets[ ].
di
SECTION A
(Attempt all questions from this Section.)
rin
Question 1 [20]
Choose the correct answers to the questions from the given options.
e
(Do not copy the question, write the correct answers only.)
re
(i)
a
.c
w
w
(a) Encapsulation
(b) Inheritance
(c) Abstraction
(d) Polymorphism
m
(iv) When primitive data type is converted to a corresponding object of its class, it
co
is called:
(a) Boxing
a.
(b) Unboxing
di
(c) explicit type conversion
rin
(a) 20 bytes
re
(b) 60 bytes
a
(c) 40 bytes
.c
(vi) The method of Scanner class used to accept a double value is:
w
(a) nextInt()
w
(b) nextDouble()
(c) next()
(d) nextInteger()
(a) every
(b) all
(c) case
(d) each
(a) 9.0
(b) 11.0
(c) 10.0
m
(d) 11
co
(ix) Name the type of error, if any in the following statement:
System.out.print("HELLO")
a.
(a) logical
di
(b) no error
rin
(c) runtime
(d) syntax
e
(a) X[4]
a
(b) X[5]
.c
(c) X[3]
w
(d) X[0]
w
(a) mark
(b) emark
(c) marka
(d) able
(a) String
(b) Char
(c) Character
(d) Float
(a) java.lang
(b) java.util
m
(d) java.awt
co
(xiv) Constructor overloading follows which principle of Object Oriented
programming?
a.
(a) Inheritance
di
(b) Polymorphism
(c) Abstraction
rin
(d) Encapsulation
e
1. 4
a
2. 4.0
.c
3. 4.3f
w
4. “four”
w
(a) Only 1.
(b) 1. and 3.
w
(c) 2. and 4.
(d) 1. and 2.
(a) true
(b) 0
(c) 1
(d) false
(vii) Assertion(A): In java statements written in lower case letter or upper case letter
are treated as the same.
m
(a) Both Assertion (A) and Reason (R) are true and Reason (R) is a correct
explanation of Assertion (A)
co
(b) Both Assertion (A) and Reason (R) are true and Reason (R) is not a
correct explanation of Assertion(A)
a.
(c) Assertion (A) is true and Reason (R) is false
di
(xviii) Read the following text, and choose the correct answer:
represent the class and Member methods that perform operations on the data
re
member.
a
(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)
m
System.out.print(Character.toLowerCase('1'));
co
(a) 0
(b) 1
a.
(c) A
di
(d) true
rin
Question 2
(i) [2]
re
(iii) The following code segment should print “You can go out” if you have done [2]
your homework (dh) and cleaned your room(cr). However, the code has errors.
w
boolean dh = True;
w
(v) How many times will the following loop execute? What value will be returned? [2]
int x=2;
int y=50;
do{
m
++x;
co
y-=x++;
}
a.
while(x<=10);
di
return y;
String a="20";
.c
String b="23";
w
int p=Integer.parseInt(a);
w
int q=Integer.parseInt(b);
System.out.print(a+"*"+b);
w
(ix) When there is no explicit initialization, what are the default values set for [2]
variables in the following cases?
(a) Integer variable
(b) String variable
SECTION B
The answers in this section should consist of the programs in either BlueJ environment or any
program environment with java as the base.
Each program should be written using variable description / mnemonic codes so that the logic of the
m
program is clearly depicted.
co
Flowcharts and algorithms are not required.
Question 3 [15]
a.
Define a class called with the following specifications:
di
Class name: Eshop
rin
Member variables:
String name: name of the item purchased
e
Member methods:
void accept(): Accept the name and the price of the item using the methods of Scanner
a
class.
.c
void calculate(): To calculate the net amount to be paid by a customer, based on the
w
following criteria:
Price Discount
w
Define a class to accept values in integer array of size 10. Sort them in an ascending order
using selection sort technique. Display the sorted array.
Question 5 [15]
Define a class to accept a string and convert it into uppercase. Count and display the
number of vowels in it.
Input: robotics
Output: ROBOTICS
Number of vowels: 3
m
co
Question 6 [15]
Define a class to accept values into a 3×3 array and check if it is a special array. An array
a.
is a special array if the sum of the even elements = sum of the odd elements.
di
Example:
A[][]={{ 4 ,5, 6}, { 5 ,3, 2}, { 4, 2, 5}};
rin
Question 7
a
.c
Define a class to accept a 3 digit number and check whether it is a duck number or not. [15]
Note: A number is a duck number if it has zero in it
w
Example1:
w
Input: 2083
w
Output: Invalid
Example 2:
Input: 103
Output: Duck number
m
output – 3.0
co
1.414213562
1.732050808
a.
2.0
di
e rin
a re
.c
w
w
w