Page 1
FOR ICSE CLASS 9 EXAM PREPARATION
ICSE Class 9 2027
Sample Paper ·
Computer Applications
EXAM YEAR TYPE SUBJECT
ICSE Class 9 2027 Sample Paper Computer Applications
INCLUDES
Marking Scheme
Notes · Sample Papers · Previous Year Papers · Mock Tests
Page 2
m
m .co
c. o
e m
em l a s
s a g
m
m c. o
.co s e m
m la
l se
aCLASS a g
g
IX - SPECIMEN QUESTION PAPER
a COMPUTER APPLICATIONS
Maximum Marks: 100
Time allowed: Two hours
m
c. o
1. Answers to this Paper must be written on the paper provided separately.
You will not be allowed to write during themfirst 15 minutes.
s e
laquestion paper.
2.
This time is to be spent in readinggthe
a
3.
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.
o m
c
6. Attempt all questions from Section A and any four questions from Section B.
m . ].
c. 7.o The intended marks for questions or parts of questions are given in brackets[
s em
em l a
l as a g
ag Instruction for the Supervising Examiner
Kindly read aloud the Instructions given above to all the candidates present in the
Examination Hall.
m .
CLASS IX – SPECIMEN 1 of 11
.co s e m
e m l a
l a s a g
ag For more Question Papers, Sample Papers, Notes & Syllabus visit Page 1 of 16
Page 3
SECTION A (40 Marks)
(Attempt all questions from this Section.)
Question 1
(i) Choose the correct answers to the questions from the given options. [15]
(Do not copy the questions, write only the correct answers.)
1. Megha knows how to bake cookies in the microwave oven, but she does
not know about the internal, unseen components of the microwave oven.
Identify the OOPs feature depicted in this scenario.
(a) Abstraction
(b) Polymorphism
(c) Inheritance
(d) Modularity
2. Which Math method accepts a double argument and returns an Integer?
(a) ceil
(b) floor
(c) random
(d) round
CLASS IX – SPECIMEN 2 of 11
For more Question Papers, Sample Papers, Notes & Syllabus visit Page 2 of 16
Page 4
m
m .co
c. o
e m
em l a s
s a g
3. Match the operators in Column A to the type of operators in Column B:
Column A Column B
1. + (a) Logical
m
2.
o
>
m
(b) Mathematical
c. o
c
3. .&& e m
em
(c) Relational
la s
la s a g
ag (a) 1-(a), 2-(b), 3-(c)
(b) 1-(b), 2-(c), 3-(a)
(c) 1-(c), 2-(a), 3-(b)
(d) 1-(b), 2-(a), 3-(c)
m
. co
em
4. Which of the following cannot be used as an identifier in Java?
(a) calculate
l a s
(b) switch a g
(c) age
(d) grade
m
co
5. Which of the following is the correct order of the number of bytes
m .
c. o m
occupied by int, char, double and boolean?
em la se
s
(a) 2, 8, 4, 1
la a g
ag
(b) 4, 8, 1, 2
(c) 2, 1, 4, 8
(d) 4, 2, 8, 1
m .
CLASS IX – SPECIMEN 3 of 11
.co s e m
e m l a
l a s a g
ag For more Question Papers, Sample Papers, Notes & Syllabus visit Page 3 of 16
Page 5
6. What does the escape sequence \t represent in Java?
(a) alert bell
(b) tab space
(c) form feed
(d) carriage return
7. The output of the Java statement Math.addExact(7, 9); is ____________.
(a) 15
(b) 16
(c) 17
(d) 18
8. Find the ODD one out of the following:
int, double, Scanner, char
(a) int
(b) char
(c) Scanner
(d) double
9. What is the purpose of the if-else-if-else ladder?
(a) iteration
(b) to check for one condition only
(c) to check multiple conditions sequentially
(d) to declare a variable
CLASS IX – SPECIMEN 4 of 11
For more Question Papers, Sample Papers, Notes & Syllabus visit Page 4 of 16
Page 6
m
m .co
c. o
e m
em l a s
s a g
10. Evaluate the given expression and identify the result 3*5%7+8/3*9;
(a) 15
(b) 19
m
m c. o
co
(c) 18
. e m
e
(d)
m
19.0
la s
l a s a g
g Roy wanted to buy the latest mobile phone. He approached a service
a11.
provider to get a sim card with a 10-digit mobile number. What is the
Scanner class method to accept the mobile number?
(a) Sc.next( )
(b) Sc.nextInt( )
m
(c) Sc.nextLong( )
. co
s em
a
(d) Sc.next( ).charAt(0)
g l
12.
a
The character equivalent of the ASCII code 65 is ‘a’. State true or false.
(a) True
(b) False
m
m .co
13. Fill in the blank to complete the following Java statement:
c. o se
m
em
Scanner SC = __________ Scanner(System.in);
s g la
la a
(a) Scanner
ag (b) dot
(c) class
(d) new
m .
CLASS IX – SPECIMEN 5 of 11
.co s e m
e m l a
l a s a g
ag For more Question Papers, Sample Papers, Notes & Syllabus visit Page 5 of 16
Page 7
14. Which of the following does NOT execute even once?
(a) for(k=10;k<=1;k++)
(b) for(k=100;k>=10;k- =10)
(c) for(k=1;k<=10;k++)
(d) for(k=10;k<=10;k++)
15. What is the value stored in z:
z *= z++ + ++z; where z = 2
(a) 6
(b) 4
(c) 12
(d) 10
(ii) Answer the following questions: [5]
(a) Name the type of error which occurs while compiling a program.
(b) Which Java package is imported by default?
(c) Define an object in Java.
(d) What is the full form of JDK?
(e) What is the Math method to convert – 4 to 4?
CLASS IX – SPECIMEN 6 of 11
For more Question Papers, Sample Papers, Notes & Syllabus visit Page 6 of 16
Page 8
m
m .co
c. o
e m
em l a s
s a g
Question 2
(i) Write the Java expression for the following: [2]
𝒎𝒎𝒎𝒎 + |𝒎𝒎|
m
c. o
𝒎𝒎 + 𝒏𝒏
m
(ii)
c. o
Evaluate the following expression: [2]
s e m
s em g l a
a a
13*7%6+8/5*7;
l
(iii)
ag programming concept that can be used to depict the same.
(a) Raj climbs 5 floors by climbing 14 steps to reach each floor. Name the [2]
(b) Identify the Object-Oriented Programming concept implemented in the
picture given below:
m
. co
s em
g l a
a
(iv) Differentiate between = and = =. [2]
(v) Rose wrote the following code to check whether a number is an even number [2]
m
m .co
or not, and print an appropriate message:
c. o se
m
em la
if(n%2==0)
s g
System.out.println("even Number");
gla a
else
a
System.out.println("Not an even number");
She asked Raj to rewrite the code using the ternary operators. What would be
the code written by Raj?
m .
CLASS IX – SPECIMEN 7 of 11
.co s e m
e m l a
l a s a g
ag For more Question Papers, Sample Papers, Notes & Syllabus visit Page 7 of 16
Page 9
(vi) What is the value of ch? [2]
int x = 65;
char ch=(char) (x++ + 5);
(vii) The following program prints the sum of factors of a given number. Fill in the [2]
blanks with appropriate Java statements:
Example: if number is 6, then output: 12 [ 1 + 2 + 3 + 6]
void sumfact(int n)
{
int i, ________; (1)
for(i=1;i<=n;i++)
{
if(_______) (2)
s=s+i;
}
System.out.println("Sum of factors = "+s);
}
(viii) Given below is the program segment [2]
if(a%b==0)
System.out.println(a/b);
else
System.out.println(a%b);
Write the output of the program segment when:
(a) a = 50, b = 5
(b) a = 50, b = 7
(ix) Give the output of the following program segment: [2]
for(k=7;k<13;k+=6)
System.out.println(k*2);
System.out.println(k*3);
CLASS IX – SPECIMEN 8 of 11
For more Question Papers, Sample Papers, Notes & Syllabus visit Page 8 of 16
Page 10
m
m .co
c. o
e m
em l a s
s a g
(x) How many times is the following loop executed? Write the output of the same. [2]
for(k=15;k>5;k-=5);
System.out.println(k);
m
m c. o
.co s e m
em la
SECTION B (60 Marks)
l a s (Answer any four questions from this Section.)
a g
ag
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 program is clearly depicted.
Flowcharts and algorithms are not required.
m
. co
Question 3
s em [15]
g l a
a
A laptop company gives a discount to its customers based on the number of laptops
purchased. If the number of laptops is more than three, the customers get a discount of
10% on the total cost, otherwise the discount is zero.
Define a class “laptop” to accept the name of the company [String], name of the customer
[String], number of laptops [int], and the price of each laptop [double] from the user using
Scanner class methods only.
m
om = number of laptops × price × 10 %
Calculate the discount [double] and the amount to be paid [double] by the customer.
.co
c.Discount m
emAmount to be paid by the customer = number of laptops × price - discount
l a se
las a g
ag Print all the details.
m .
CLASS IX – SPECIMEN 9 of 11
.co s e m
e m l a
l a s a g
ag For more Question Papers, Sample Papers, Notes & Syllabus visit Page 9 of 16
Page 11
Question 4
(i) Define a class “sumseries” to calculate and display the sum of the series: [12]
𝟐𝟐 𝟒𝟒 𝟔𝟔 𝟖𝟖 𝒏𝒏
S = 𝒂𝒂 +𝒂𝒂 +𝒂𝒂 +𝒂𝒂 … . . 𝒂𝒂
(ii) Name the jump statements in Java. [3]
Question 5
(i) Define a class “pattern” to print the following format using nested for loop only. [12]
1*2*3*4*5*
1*2*3*4*5*
1*2*3*4*5*
1*2*3*4*5*
(ii) Name three iteration statements in Java. [3]
Question 6
In a hill station, the bikes are given for rent on an hourly basis as follows: [15]
Number of hours Rate
Upto 2 hours Rs.150 per hour
For Next 2 hours Rs.100 per hour
(each additional hour)
For above 4 hours Rs.75 per hour
(each additional hour)
Define a class “bike” to accept the name of the customer and number of hours he would
like to hire the bike, calculate and display the amount to be paid by him as:
Dear <name of the customer>
You need to pay <amount> for <number of hours> hours.
CLASS IX – SPECIMEN 10 of 11
For more Question Papers, Sample Papers, Notes & Syllabus visit Page 10 of 16
Page 12
m
m .co
c. o
e m
em l a s
s a g
Question 7
(i) Define a class “roman” to display the corresponding Roman numeral of a Hindu [12]
Arabic number (1 to 5) accepted from the user. The program should be designed
m
c. o
using switch case construct only.
m
(ii)
.co
What are relational operators in Java? Name any two types of relational operators.
s e m
e m la
[3]
l a s a g
Question 8 ag
Write a menu-driven program to calculate the area of an equilateral triangle and a scalene [15]
triangle as per the user’s choice (using switch case only).
(i) Scalene triangle area =�𝒔𝒔(𝒔𝒔 − 𝒂𝒂)(𝒔𝒔 − 𝒃𝒃)(𝒔𝒔 − 𝒄𝒄) where a, b, c are the sides and
m
𝒂𝒂+𝒃𝒃+𝒄𝒄
o
s= .
c
𝟐𝟐
, a=side of.the triangle
em
√𝟑𝟑
area= 𝟒𝟒 𝒂𝒂𝟐𝟐
s
(ii) Equilateral triangle
a gla
m
m .co
c. o se
m
s em g la
gla a
a
m .
CLASS IX – SPECIMEN 11 of 11
.co s e m
e m l a
l a s a g
ag For more Question Papers, Sample Papers, Notes & Syllabus visit Page 11 of 16
Page 13
CLASS IX – SPECIMEN
DRAFT MARKING SCHEME - COMPUTER APPLICATIONS
SECTION A (40 marks)
Question 1 [15x1]
(i) 1. (a) Abstraction
2. (d) round
3. (b) 1-(b), 2-(c), 3-(a)
4. (b) switch
5. (d) 4, 2, 8, 1
6. (b) tab space
7. (b) 16
8. (c) Scanner
9. (c) to check multiple conditions sequentially
10. (b) 19
11. (c) Sc.nextLong( )
12. (b) False
13. (d) new
14. (a) for(k=10;k<=1;k++)
15. (c) 12
(ii) (a) Syntax [5x1]
(b) lang
(c) An object is an instance of a class.
(d) Java Development Kit
(e) Math.abs
Question 2
(i) (m*n+Math.abs(m))/(m+n) [2]
(ii) 8 [2]
(iii) (a) Nested loop [2]
(b) Inheritance
(iv) = is an assignment operator, = = is a relational operator [2]
(v) String s = n%2==0? “Even number”: “Not an even number”; [2]
(vi) F [2]
CLASS IX – SPECIMEN 1 of 5
For more Question Papers, Sample Papers, Notes & Syllabus visit Page 12 of 16
Page 14
m
m .co
c. o
e m
em (vii) l a s
s 1. s=0;
a g [2]
2 n%i==0
(viii) (a) 10 [2]
(b) 1
(ix) 14 [2]
39
m
c. o
(x) Loop is executed twice [2]
m
.co m
Output : 5
m s e
a s e g la
l a
SECTION B (60 Marks)
ag
Question 3
class laptop [1] [15]
{
public void main(String com,String name, int n,double p) [4]
{ double total =0.0; [1]
if(n>=3) [2]
m
co
{
.
em
double dis =n*p*10.0/100; [2]
s
[1]
a
total =n*p-dis;
g l
}
else a
{
total =n*p; [1]
}
System.out.println(name+" purchased "+com+ " laptops of " +n+ " numbers and the bill is
" +total); [1]
m
}
m .co
c. o se
m
}
em la
Variable Description [2]
s
la Question 4 a g
g
a (i) class sumseries [1] [12]
{
void calculate(int a, int n) [2]
{
double s=0,i; [1]
for(i=2;i<=n;i+=2) [3]
m .
co
{
. 2 of 5 se
m
e m la
s g
CLASS IX – SPECIMEN
gl a a
a For more Question Papers, Sample Papers, Notes & Syllabus visit Page 13 of 16
Page 15
s+=Math.pow(a,i); [2]
}
System.out.println(s); [1]
}
}
Variable Description [2]
(ii) break, continue, return [3]
Question 5
(i) class pattern [1] [12]
{
void print() [1]
{
int r,c;
for(r=1;r<=4;r++) [3]
{
for(c=1;c<=5;c++) [2]
{
System.out.print(c+"*"); [2]
}
System.out.println(); [1]
}
}
}
Variable Description [2]
(ii) for, while and do while [3]
Question 6
class bike [1] [15]
{
void calculate(String name, int n) [2]
{
double bill; [1]
if(n<=2) [1]
bill=n*150; [1]
else
if(n>2&&n<=4) [1]
bill=150*2+(n-2)*100; [2]
else
bill=150*2+100*2+(n-4)*75; [2]
CLASS IX – SPECIMEN 3 of 5
For more Question Papers, Sample Papers, Notes & Syllabus visit Page 14 of 16
Page 16
m
m .co
c. o
e m
m a s
se System.out.println("Dear "+name+" you need to pay Rs."+bill+ "lfor "+n+"
hours"); ag[2]
}
}
Variable Description [2]
Question 7
m
c. o
(i) class roman [1] [12]
m
co m
{
m .
void display(int n) [1]
s e
s e g la
{
l a a
ag
switch (n) [2]
{
case 1 : System.out.println("I");break; [1]
case 2 : System.out.println("II");break; [1]
case 3 : System.out.println("III");break; [1]
case 4 : System.out.println("IV");break; [1]
case 5 : System.out.println("V");break; [1]
default : System.out.println("Invalid number"); [1]
m
}
. co
}
em
}
las
Variable Description [2]
a g
(ii) The relational operators are used for comparison of two values. They are >, <, [3]
>=, <=, !=, = =.
Question 8
import java.util.*; [1] [15]
m
class menu
m .co
{
c. o m
[1]
se
Scanner ob=new Scanner(System.in);
em la
void perform()
las {
a g
ag
int ch;
System.out.println("1.Area of a Scalene triangle\n2.Area of Equilateral triangle\n");
[1]
System.out.println("Enter your choice");
ch=ob.nextInt(); [1]
switch(ch) [1]
{
m .
.co 4 of 5 se
m
e m la
s g
CLASS IX – SPECIMEN
gl a a
a For more Question Papers, Sample Papers, Notes & Syllabus visit Page 15 of 16
Page 17
case 1: double a,b,c,S,A;
System.out.println("Enter a");
a=ob.nextDouble(); [1]
System.out.println("Enter b");
b=ob.nextDouble();
System.out.println("Enter c");
c=ob.nextDouble();
S=(a+b+c)/2; [1]
A=Math.sqrt(S*(S-a)*(S-b)*(S-c)); [1]
System.out.println("Area of a Scalene triangle="+A); [1]
break; [1]
case 2: double n,m;
System.out.println("Enter a");
n=ob.nextDouble(); [1]
m=Math.sqrt(3)*n*n/4; [1]
System.out.println("Area of an equilateral triangle="+m);
break;
default : System.out.println("Invalid choice"); [1]
}
}
}
Variable Description [2]
CLASS IX – SPECIMEN 5 of 5
For more Question Papers, Sample Papers, Notes & Syllabus visit Page 16 of 16