CBS, Computer Applications
CBS, Computer Applications
CLASS X
COMPUTER APPLICATION
Maximunm Marks 100
Time allowed Two hours
Answers to this Paper must be written on the paper provided separately
Youwill not be allowed to write during the first I5 minutes
This time is to be spent in reading the question papper.
The time given at the head of this Paper is the time allowedfor writing the answers.
This Paper is divided into two Sections.
Aitempt all questions from Section Aand any four questions from Section B.
The intended marks for questions or parts of questions are given in brackets |/
SECTION A
(Attempt all questions from this Section)
Question 1 [20]
Choose the correct answer and write the correct option.
(0) Conversion of a wrapper class to its corresponding primitive type is called
la) Unboxing
(b) Autoboxing
(c) Parsing
(d) Type casting
(iv) In a binary search technique, the elements of the array are needed to be first.
(a) doubled
(b) deleted
(c) compared
sd) sorted
Page 1 of 7
CBS- Pre-Board Examination 2025
andi
he will store the names
t xn ,t d t sirNiute vie should he use?
stuture
at* 0Nye hs Noe WhNh sungle data
arqument/arquments?
Ah tN fokovgSthg methos can have nteger
sust)
(a) 1Darray
(b) 2D array
(c) Loop
(d) Cass
(a) class
b) Inheritance
() Data abstraction.
(d) None of these
Page 2 of 7
CBS- Pre-Board Examination 2025
(xii) int x =Integer.
(a) parseLong (347");
(b) valueOf
(c) toString
(d) None of these
(xii) Bony wants to find the
the appropriate Java modulus of the product of two numbers (a and b)when
expression. dividing with /. Se
(a) a%7 * b%7;
(b) (a+b)*7%10;
lef (a*b)%7
(d) None of these
(a) 0
b) -1
(c) 5
(d) none
Page 3 of 7
(b) -1
(c) 2
(d) None of these
Question 2
()Write the values of c and dafter execution of following code. [2]
int a= 1;
int b = 2;
int c;
int d;
C= ++b;
d =at+;
C++;
()) Observe the following code and write how many times will the loop execute? [2]
a= 5;
b= 2;
int r;
while(b != 0)
r=a % b;
a = b;
b=r;
System.out.printin(" " + a);
(v) Write the values that will be assigned to x, y and t after executing the following code. [2)
String s1, s2, x, y;
int t;
S = "classxii";
s2 = "cbseboard";
x =s1.sutbstring(5, 8);
y= s2.concat(s1 );
t= y.length();
System.out.printin("x=" + x);
System.out. printin("y=" + y);
System.out.printin("t=" + t);
Page 4 of 7
System.out.printin(count);
(Vii) Mention how many times the qiven loop is executed and qive output of the Same.
for (inti= 10;i<=20; i+=3 )
{if (i% 4 = =0) continue; System.out.println(i); }
(ix) Mention the two ways of invoking a function in Java.
(x)Write the differences between compareTo () and equals() functions in Java.
SECTION B
(Attempt any four questions from this Section)
The anSwers in this section should consist of the programs in either BlueJenvironment or any program
environment with java as the base.
Each program in this section should be written using variable description
Flowcharts and algorithms are not required.
Qlestion 3 [15]
Design a cdass EMPLOYEE with the following specification:
EMPLOYEE
Class name
Data Member
ename Tostore the name of an employee
age To store the age of an employee
basic To store the basicpay of the employee
mob To store the mobile number of an employee
net To store the final salary of an employee.
Page 5 of 7
CBS- Pre-Board Examination 2025
pay
hra = 17% of basic
basic pay
da = 15% of
10% of basic pay
pf da) - pf
net salary (basic pay +hra +
number
basiC pay, mobile
void print() To print the name,employee
and net pay of an
functions. Define the
and member
Specify the class EMPLOYEE by qiving the details of the nember data class only
an object and call the functions accordingly to enable the task. Use Scanner
tO CTeate
to take the inputs from the user.
eestion 4 [15]
@$@SO
Write a main function and create the object of the class. Call the member functions mentioned above from
the main through the object.
Question 5 [15]
Define a class to input 15 integer elements in an array and sort them in ascending order using the bubble
sort technique.
Question 6 [15]
Write a java program which will create atwo dimensional array (integer) where the size of the array is M>x M
[M is the total number of rows and columns of the array] and store the elements inside it. Perform the
following task -
Display the sum of odd numbers and product of even numbers present in the array.
,b. Display only the boundary elements of the array.
[Hint :Use Scanner class to take input from the User. Initialize the above array by using
new operator]
Page 6 of 7
CBS- Pre-Board Examination 2025
Question 7
Write a program to input a
alphabetical order. sentence. Count and display the frequency of cach [15]
Sample Input: COMPUTER letter of the sentence m
Sample Output: APPLICATIONS
Character
Frequency Character Frequency
A
2
2
C
p 3
1 R 1
L 2 1
M 1 T 2
N 1 1
Quéstion 8 [15]
Write a program in Java to print all Adam numbers between I and 100.
An Adam integer is a positive integer (without leading zeros) where the square of a number and the
square of its reverse are reverse to each other.
Page 7 of 7
CBS- Pre-Board Examination 2025