Prestige International School
Affiliated to CISCE KA 359, New Delhi
Sy. No 65. Virgo Nagar Post, Rampura, Bangalore-49
Grade: IX First Preparatory Exam, January - 2026 Marks: 100 Marks
Date: Subject: COMPUTER APPLICATIONS Duration: 2 Hours
Answer to this paper must be written on the paper provided separately.
You will not be allowed to write during the first 15 minutes.
This time is to be spent in reading the question paper.
The time given at the head of this paper is the time allowed for writing the answers.
This paper is divided into two sections.
Attempt all questions from Section- A and any four questions from Section- B.
The intended marks for questions or parts of questions are given in brackets [ ].
SECTION – A [40 Marks]
(Attempt all the questions from this section)
Question 1: [20 M]
Choose the correct answer from the given options.
i. Then process of converting the source code into machine code is called ____________.
a) Programming b) Conversion c) Compilation d) De-Bugging
ii. Find the odd one, means which is not obey with ‘Java’?
a) Java is object-oriented c) Java is case sensitive
b) Java is platform independent d) Java will not support Multithreading
iii. Name the Object-Oriented language among the following.
a) Pascal b) Fortran c) C++ d) All of these
iv. Which among the following is used to represent single-line comment?
a) // b) /* c) \\ d) <! –
v. _______________ package is imported by default in java.
a) [Link] b) [Link] c) Both a and b d) None of these
vi. What value will [Link]([Link](8.1)) return?
a) 9.0 b) 9 c) 3.0 d) 4.0
vii. An if statement inside another if statement is called _______________.
a) Nested if b) Internal if c) Concentric if d) None of these
viii. What will be the output of the following code snippet?
int a=15;
int b=25;
if((a<b) || (a=5)>15)
[Link](a);
else
[Link](b);
a) Error b) 15 c) 25 d) No output
ix. A ____________ is a set of objects that has common attributes and common behaviours.
a) Abstraction b) Encapsulation c) Class d) Function
x. Which of the following is a correct way to create an object in Java?
a) Object obj=new Object(); c) new Object obj=new Object();
b) Object obj=[Link](); d) Object obj=[Link]();
Page 1 of 5
xi. To skip the remaining statements in the current iteration of a loop and proceed to the next iteration,
use the _____________ keyword.
a) continue b) break c) skip d) switch
xii. The _______________ loop is guaranteed to execute its block of code at least once, regardless of the
condition.
a) for loop b) while loop c) do-while loop d) nested loop
xiii. int s=(int) 32.8; is an example of _________________ typecasting.
a) Implicit b) Explicit c) Automatic d) Coercion
xiv. Identify the principle of ‘Object – Oriented Programming Concepts’ from the picture given below.
a) Data abstraction b) Polymorphism c) Inheritance d) Encapsulation
xv. The return type of [Link](x); is ___________.
a) int b) float c) double d) boolean
xvi. Assertion (A): The new operator is used to create new objects in Java.
Reasoning (R): The new operator allocates memory for a new object and returns a reference to it.
a) Both Assertion and Reasoning are true, Reasoning is a correct explanation of Assertion.
b) Both Assertion and Reasoning are true, but Reasoning is not correct explanation of Assertion.
c) Assertion is true, but Reasoning is false.
d) Assertion is false, but Reasoning is true.
xvii. Which of the following operators has the highest precedence in Java?
a) && b) || c) + d) ( )
xviii. _____________ refers to ensuring that the software being used is not pirated or unauthorized.
a) Phishing b) Software Piracy c) Software Ethics d) Patent
xix. Assertion (A): Computer crimes include activities like data theft and unauthorized access.
Reasoning (R): Computer crimes often result from a lack of proper security measures.
a) Both Assertion and Reasoning are true, Reasoning is a correct explanation of Assertion.
b) Both Assertion and Reasoning are true, but Reasoning is not correct explanation of Assertion.
c) Assertion is true, but Reasoning is false.
d) Assertion is false, but Reasoning is true.
xx. for(int k=1; k<=2;k++)
{
for(int m=1; m<=4; m++)
{
[Link](m*2);
}
}
How many times the inner loop is executed?
a) 4 times b) 8 times c) 2 times d) 16 times
Page 2 of 5
Question 2: [20 M]
Answer the following:
i. State the java concept that is implemented through:
a) A super class and a subclass
b) The act of representing essential features of a class without including the background details.
ii. Differentiate between switch-case and if else if statements.
iii. Give the output of following code and mention how many times the loop will execute?
int i;
for(i=5; i>=1; i--)
{
if(i%2==1)
continue;
[Link](i+ “ “);
}
iv. State the difference between while loop and do-while loop.
v. Solve: int k=5, j=9;
k + = k++ - ++j+k;
find the value of k and j.
vi. Convert the following if else if construct into switch case:
if(ch== ‘c’ || ch== ‘C’)
[Link](“COMPUTER”);
else if(ch== ‘h’ || ch== ‘H’)
[Link](“HINDI”);
else
[Link](“PHYSICAL EDUCATION”);
vii. Define the terms:
a) Spyware b) Trojan Horses
viii. Write any two differences of break and continue statements.
ix. Evaluate the following expression if the value of x=2, y=3 and z=1;
v= x+ --z+ y++ +y.
Find the value of x, y, z and v.
x. Rewrite the following using a ternary operator:
if(num%2 !=0)
[Link](“Odd”);
Else
[Link](“Even”);
SECTION – B [60 Marks]
(Answer any four questions from this section)
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.
Page 3 of 5
Question 3: [5 + 10] M
a) Develop a grade processing system for a class of students. The program should read the marks of each
student, calculate the average and determine the highest and lowest marks using loops and conditional
statements.
b) An electronics shop has announced the following seasonal discounts on the purchase of certain items.
Purchase Amount in Rs. Discount on Laptop Discount on Desktop PC
0 – 25000 0.0 % 5.0 %
25001 – 57000 5.0 % 7.6 %
57001 – 100000 7.5 % 10.0 %
More than 100000 10.0 % 15.0 %
Define a class based on the above criteria to input name, address, amount of purchase and type of
purchase (L for Laptop and D for Desktop) by a customer. Compute and print the net amount to be paid by
a customer along with his name and address.
(Hint: discount = (discount rate/100) * amount of purchase
Net amount = amount of purchase – discount)
Question 4: [10 + 5] M
a) Define a class to accept a number and check and display whether it is a spy number of not.
(A number is spy if the sum of its digits equals the product of its digits.)
Example: consider the number 1124,
Sum of the digits = 1 + 1 + 2 +4 =8
Product of the digits = 1 × 1 × 2 × 4 =8
b) Print the following pattern:
@
@ #
@ # @
@ # @ #
@ # @ # @
Question 5: [7 + 8] M
a) Write a program to input the three sides of a triangle and find the perimeter and area of the triangle.
If a, b and c are the 3 sides then,
Perimeter = a + b + c
a+b+c
𝐴𝑟𝑒𝑎 = √𝑠(𝑠 − 𝑎)(𝑠 − 𝑏)(𝑠 − 𝑐) where 𝑠 =
2
b) Using a switch statement, write a menu driven program to convert a given temperature form Fahrenheit
to Celsius and vice versa. For an incorrect choice, an appropriate error message should be displayed.
5
(HINT: 𝐶 = × ( 𝐹 − 32) and F = 1.8 × C +32s).
4
Question 6: [7 + 8] M
a) Define a class to accept a number and check if the sum of the first digit and the last digit is an even
number or an odd number.
Example: N = 2396
First digit: 2, Last digit: 6 Sum=2+6=8 Sum is even
Page 4 of 5
b) Write a program to check the entered number is Deficient number or not.
(If sum of all factors is less than original number then it is Deficient number)
Question 7: [8 + 7] M
a) Write a java program to print the series given below:
1 1 1
𝐒 = 1+ + + + −−−−−
2 3 4
b) Write a program to print the pattern given below.
1 1 1 1 1
2 2 2 2 2
3 3 3 3 3
4 4 4 4 4
5 5 5 5 5
Question 8: [ 15 ] M
Design a class RailwayTicket with following description:
Instance variables/data members:
String name: To store the name of the customer
String coach: To store the type of coach customer wants to travel
long mobno: To store customer’s mobile number
int amt: To store basic amount of ticket
int totalamt: To store the amount to be paid after updating the original amount
Write a main method with the above given variables and update the total amount will be updated as
follows:
Type of Coaches Amount
First_AC - 700
Second_AC - 500
Third_AC - 250
Sleeper - None.
**********************************
Page 5 of 5