SRI R.V.
SCHOOL
Affiliated to C.I.S.C.E, New Delhi, KA179
Pre-Board Examination - January 2026 Date :19/01/2026
Grade :10
Subject : Computer Applications
Answer to this paper must be written on the paper provided separately. You will not be allowed
to write answer for the first 15 minutes. This time is to be spent on reading the question paper.
The time given at the head of this paper is the time allowed for writing the answer.
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 questions from this Section)
Question 1. Choose the correct answers to the questions from the given options. [20]
(i) Consider the below picture and choose the correct statement from the following:
A. Polygon is the object and the pictures are classes
B. Both polygon and the pictures are classes
C. Polygon is the class and the pictures are objects
D. Both polygon and the pictures are objects
(ii) The size of '\t' is:
A. 1 byte
B. 2 bytes
C. 4 bytes
D. 8 bytes
(iii) Identify the operator that gets the highest precedence while evaluating the given expression:
a+b%c*d-e
A. +
B. %
C. -
D. *
(iv) Which of the following pairs is incorrectly matched?
A. Object Code – Platform-specific code
B. Byte Code – Generated by compiler
C. JVM – Executes byte code
D. Source Code – Executable machine instructions
(v) In the statement float pi = 3.14f+x; how many tokens are present?
A. 7
B. 8
C. 5
D. 6
1
(vi) The output of the following code is:
[Link]([Link](6.4) + [Link](-1 - 2));
A. 3.0
B. 4
C. 3
D. 4.0
(vii) What is the value of y after evaluating the expression given below?
y+= ++y + y-- + --y; when int y=8
A. 40
B. 33
C. 35
D. 38
(viii) Which of the following is not true with regards to a switch statement?
A. checks for an equality between the input and the case labels
B. supports floating point constants
C. break is used to exit from the switch block
D. case labels are unique
(ix)Which of the following is an example of implicit type conversion?
A. int a = 10; float b = (float)a;
B. float f = 5.5; int i = (int)f;
C. char c = 'A'; int i = (int)c;
D. int a = 10; float b = a;
(x) Which of the following returns a String?
A. length()
B. charAt(int)
C. replace(char, char)
D. indexOf(String)
(xi) Consider the array given below:
char ch[] = {'A','E','I','O', 'U'};
Write the output of the following statements:
[Link](ch[0]*2);:
A. 65
B. 130
C. 'A'
D. Error
(xii) Method prototype for the method compute which accepts two integer arguments and returns
true/false.
A. void compute (int a, int b)
B. boolean compute (int a, int b)
C. Boolean compute (int a,b)
D. int compute (int a, int b)
(xiii) The statement that brings the control back to the calling method is:
A. break
B. [Link](0)
C. continue
D. return
2
(xiv) Write the output of the following statement:
int rand = (int)([Link]());
[Link](rand +" ");
A. 0
B. 5
C. -3
D. 10
(xv) In the bubble sort technique, during each iteration of the inner loop, two adjacent elements
are …………… and …………… .
(i) compared
(ii) swapped
(iii) selected
(iv) deleted
A. (i) and (ii)
B. (ii) and (iii)
C. (iii) and (iv)
D. (ii) and (iv)
(xvi) Evaluate the value of n if value of p = 5, q = 19
int n = (q – p) > (p – q) ? (q – p) : (p – q);
A. 14
B. 15
C. 19
D. -14
(xvii) Assertion (A): Call by value is known as pure method.
Reason (R): The original value of variable does not change as operation is performed on
copied values.
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) The output of the statement "talent".compareTo("genius") is:
A. 11
B. –11
C. 0
D. 13
(xix)The access specifier that gives least accessibility is:
A. package
B. public
C. protected
D. private
(xx) Constructor overloading follows which principle of Object Oriented programming?
A. Inheritance
B. Polymorphism
C. Abstraction
D. Encapsulation
Question 2.
(i) State the difference between entry controlled loop and exit controlled loop. [2]
(ii) How many times will the following loop execute? What value will be returned?
int x = 2;
3
int y = 50;
do{
++x;
y -= x++;
}
while(x <= 10);
return y; [2]
(iii) Give the output of the following program segment and also mention how many times the
loop is executed:
int i;
for ( i = 5 ; i > 10; i ++ )
[Link]( i );
[Link]( i * 4 ); [2]
(iv) Write a Java expression for the following:
| ax5 + bx3 + c | [2]
(v) Consider the following program segment and answer the questions given below:
int x[][] = { {2,4,5,6}, {5,7,8,1}, {34, 1, 10, 9}};
(a) What is the position of 34?
(b) What is the result of x[2][3] + x[1][2]? [2]
(vi) Write a function that takes two char arguments and returns 0 if both the arguments are
equal. The function returns -1 if the first argument is smaller than the second and 1 if the
second argument is smaller than the first. [2]
(vii) Predict the output of following statement?
byte a=126;
a++;
++a;
[Link](a); [2]
(viii) Convert the following if else if construct into switch case
if( var==1)
[Link]("good");
else if(var==2)
[Link]("better");
else if(var==3)
[Link]("best");
else
[Link]("invalid"); [2]
(ix) What are the values of a and b after the following function is executed, if the values passed
are 30 and 50:
void paws(int a, int b)
{
a=a+b;
b=a–b;
a=a–b;
[Link](a+ "," +b); } [2]
(x) State the output when the following program segment is executed:
String a ="Smartphone", b="Graphic Art";
String h=[Link](2, 5);
String k=[Link](8).toUpperCase();
[Link](h);
[Link]([Link](h)); [2]
4
SECTION – B [60 Marks]
(Answer any four questions from this section)
The answer in this section should consist of the program in either BlueJ environment or any
program environment with Java as the base. Each program should be written using variable
description / Mnemonic Codes such that the logic of the program of the program is clearly
depicted. Flow charts and Algorithms are not required.
Buffered Reader / Data Input Stream should not be used in this program.
Question 3. Define a class called with the following specifications:
Class name: Eshop
Member variables:
String name: name of the item purchased
double price: Price of the item purchased
Member methods:
void accept(): Accept the name and the price of the item using the methods of Scanner class.
void calculate(): To calculate the net amount to be paid by a customer, based on the following
criteria:
Price Discount
1000 – 25000 5.0%
25001 – 57000 7.5 %
57001 – 100000 10.0%
More than 100000 15.0 %
void display(): To display the name of the item and the net amount to be paid.
Write the main method to create an object and call the above methods. [15]
Question 4. Using switch statement, write a menu driven program for the following:
(i) A tech number has even number of digits. If the number is split in two equal halves, then
the square of sum of these halves is equal to the number itself. Write a program to
generate and print all four digits tech numbers.
Example: Consider the number 3025
Square of sum of the halves of 3025 = (30 + 25)2 = (55)2 = 3025 is a tech number
(ii) Write a program to input a number and check and print whether it is a Pronic number or
not. (Pronic number is the number which is the product of two consecutive integers)
Examples:
12 = 3 x 4
42 = 6 x 7 [15]
Question 5. Define a class to overload the method display() as follows:
void display(): To print the following format using nested loop.
12121
12121
12121
void display (int n, int m) : To print the quotient of the division of m and n if m is
greater than n otherwise print the sum of twice n and thrice m.
double display (double a, double b, double c) — to print the value of z where
z=p×q
p=a+b
q=a+b+c
Write a main method to create an object of a class and call the above member methods. [15]
5
Question 6. Define a class to accept 20 Names from a user. Using bubble sort technique
arranges them in descending order. Display the sorted array and original array. [15]
Question 7. Write a program in Java to accept a string in lower case and change the first letter of
every word to upper case. Display the new string.
Sample input: we are in cyber world
Sample output: We Are In Cyber World [15]
Question 8. Define a class Student as given below:
Data members/instance variables:
name, age, m1, m2, m3 (marks in 3 subjects), maximum, average
Member methods:
A parameterized constructor to initialize the data members.
To compute the average and the maximum out of three marks.
To display the output,
Name Age Average Maximum
xxxx xxx xxxxxx xxxxxxx
Write a main method to create an object of a class and call the above member methods. [15]