0% found this document useful (0 votes)
8 views6 pages

Class 10 Computer

The document is a preboard examination paper for Class X in Computer Applications, consisting of two sections: Section A with multiple-choice questions and Section B requiring programming tasks. Section A includes 20 questions with various topics related to computer science concepts, while Section B consists of programming problems that require students to write Java code. The total marks for the exam are 100, with a time limit of 2 hours.

Uploaded by

jasveerkaur8979
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views6 pages

Class 10 Computer

The document is a preboard examination paper for Class X in Computer Applications, consisting of two sections: Section A with multiple-choice questions and Section B requiring programming tasks. Section A includes 20 questions with various topics related to computer science concepts, while Section B consists of programming problems that require students to write Java code. The total marks for the exam are 100, with a time limit of 2 hours.

Uploaded by

jasveerkaur8979
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

PREBOARD EXAMINATION 24-2025

CLASS X
COMPUTER APPLICATIONS
Max Marks 100 Time : 2 hrs

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
(Attempt all questions from this Section.)

Question 1: [20]
Choose the correct answers to the questions from the given options.
(Do not copy the question, write the correct option with correct answers.)

(i) Name the process in the given image where teacher is


communicating to a student for a task.

(a) Abstraction (b) Instantiation (c) Message Passing (d) Inheritance

(ii) Which of the following returns char?


(a) indexOf (char) (c) substring (int)
(b) replace (char, char) (d) charAt (int)

(iii) Read the following text, and choose the correct answer:
The actual parameter is copied to the formal parameter in such a
way that any change made in the formal parameter values does not
affect the actual parameter values. Which of the following options
discusses the above-mentioned statement?

(a) call by reference (b)call by value (c) Methods (d) constructors

(iv) Assertion: Arrays are used to store multiple values of the same data type
in a single variable.
Reason: Arrays provide better memory utilization compared to individual
variables.
(a) Both Assertion and Reason are true and Reason is the correct
explanation for Assertion
(b) Both Assertion and Reason are true but Reason is not the correct
explanation of Assertion
(c) Assertion is true, Reason is false
(d) Assertion is false, Reason is true.
(v) Arrange the following in the descending order of number of bytes occupied.
(i) char x[20] (ii) int a[4][2] (iii) double b[6]
(a) (iii), (ii), (i)
(b) (iii), (i), (ii)
(c) (ii), (iii), (i)
(d) (i), (ii), (iii)

(vi) The parameter that appear in the method call are called as ____________.
(a) Call parameters (c) void parameters
(b) actual parameters (d) formal parameters

(vii) If a string contains p numbers of characters, then what will be the index of
last character?

(a) P (b) p-1 (c) p-2 (d) 0

(viii) Though the program compiles, the result is not the desired result as per
the requirement due to which error.
(a) Syntax error (b) Logical error (c) Runtime error (d) compiler.

(ix) Which of the following is an invalid literal ?


(a) “899” (b) 24 (c) ‘CHALK’ (d) 25.5

(x) 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)

(xi) Sham was asked to encode a string S, by replacing the letter E with #.
Select the appropriate statement:

(a) [Link](‘#’,’E’) (b) S. replace(‘E’)


(c) S. replace(‘E’, ‘#’) (d) S. replace(‘#’)

(xii) The wrapper class of char datatype is ____________ .


(a) Character (b) String (c) Boolean (d) character

(xiii) The condition in switch which executes all the cases from matching case
till next break statement.
(a) default (b) Logical error (c) fall through ( d) if condition

(xiv) The automatic conversion of primitive data type into an object of its
equivalent wrapper class is known as ____________ .
(a) autoboxing (b) unboxing
(c) implicit conversion (d) explicit conversion

(xv) class is a ___________ data type.


(a) String (b) primitive(c) composite (d) character

(xvi) The index value of array[40] are numbered from _______________.


(a) 1 to 40 (b) 1 to 39 (c) 0 to 40 (d) 0 to 39

(xvii) Which function checks if the string is equal, bigger or smaller than the
other string or not.
(a) equals() (b)equalsTo() (c) compare( ) (d) compareTo( )

(xviii) Which of the following statement is false.


(a) A constructor has same name as a class name.
(b) A constructor is used to initialise the data members.
(c) A constructor returns initial value.
(d) A constructor is not used for arithmetical and logical operations.

(xix) Find the output of the following code:


int s=14;
if(s>20)
[Link](“Over”);
else
[Link](“Under”);
[Link](“ the sky”);

(a) Over the sky (b) Under the sky (c) Over (d) Under

(xx) Komal wants to write a program in which she has to create a loop. She
don’t know how many times the loop will run. But she wants the loop to
run only if the condition is true. Which type of loop she has to use ?
(a) while loop (b) for loop (c) do while loop (d) Nested loop

Question 2:

(a) Write the output of the following [2]


String x=”Universe “ String b = “Unity”
(i) [Link]([Link](0)==[Link](0);
(ii) [Link]([Link](y));

(b) What is the length of the array int arr[ ], if the last index is y ? [1]

(c) Consider the following program segment and answer the questions
given below [2]
int x= {{5,3,7,9}, {620, 87,4,7}, {5,8,7,9}};
(i) What is the position of 620?
(ii) What is the result of x[1][2]+ x[2][3]?

(d) Differentiate between (one point each with eg) [2]

i. Pure function and impure function


ii. Single Dimension Array and Double Dimension Array

(e) Convert
(i) The number 25.5 to String [1]
(ii) The String “30” to int [1]

(f) Name the following : [1]


(i) A Math function that does not have an argument
(ii) String function that finds the last occurrence of a given
character
(g) Convert the following if else if construct into switch case: [2]
if (ch== 'c' || ch=='C')
[Link] . print(''COMPUTER'');
else if (ch== 'h' || ch=='H')
[Link] . print(''HINDI'');
else
[Link] . print(''PHYSICAL EDUCATION'');

(h) Evaluate the expression [2]


a *= a++ * --a / --a % ++a Given a = 4;

(a +b)(a+ b)
(i) Write the java expression for + |a| [2]
( x+ y )

(j) Write the function prototype of a static function calc() which receives
double type value and returns Boolean value. [2]
(k) What do you mean by Constructor. Name the different types of
constructors in java [2]

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.
Each Program carries 15 marks

Question 3:

Design a class Hotel with the following description:


Member variables:
String name – to store the name of the customer
long mno – to store the mobile number of the customer
double bill – to store the bill amount
double gst – to store GST amount
double st – to store the service tax
double tamt – to store the total amount to be paid by the customer
Member methods:
Hotel() – default constructor to initialize the data members.
void accept() – to accept customer’s name, mobile number, GST, service tax and
amount.
void calculate() – to calculate GST, service tax and total amount to be paid by
the customer.
gst = 18% on bill
st = 12.5% on bill
tamt = bill +gst +st
void display() – to display the customer’s name, mobile number and bill amount.
Write a main method to create an object and invoke the above member
methods.
Question 4:
Write a program to input a double dimension array 4 * 4 and print the sum of
left diagonal and right diagonal
Eg Input 2 3 6 9
5 8 2 1
4 7 5 2
6 3 2 1
Output :Sum of right diagonal (9+2+7+6 ) =24
Sum of left diagonal ( 2+8+5+1) = 16

Question 5:

Define a class to accept a four-digit number and check if it is a USHWA number


or not.
The number is said to be USHWA Accept a four digit number .
If: Sum of all digits= 2× ( sum of first and last)
Example 1: n =1234 Sum of first and last = 1+4=5
Sum of all digits =1+2+3+4=10
Example 2 If the input value is 354, then a error message should be given as
the number has only 3 digits.

Question 6:

A student appearing for the ICSE/ISC examination will be given an index number,
which is of the following format:
Number of 7 digits/number of 3 digits. The first digit represents ICSE(1) or
ISC(2), the next two digits represent the year, the next four digits represent
the centre number, the last 3 digits represent the index number.

Example: 1244311/204
Output Class: 10
Year: 24
Centre number: 4311
Index number: 204

Example : 2259856/107
Output Class: 12
Year: 25
Centre number: 9856
Index number:107
Define a class to accept the student index number as a String and print his/her
details as above.

Question 7:
Define a class Linear to declare an array to accept 20 names in Names[ ], also declare
an array Aadhar[ ] to accept and store respective Aadhar card numbers in it.
Now accept an Aadhar number AadharNum and search it in the given array using
linear search technique. If found display the name that is paired with the Aadhar
number. If not found display “Record does not exist”.

Question 8
Design a class to overload a method Print as follows
void print()
to print the following patter
1
1 3
1 3 5
1 3 5 7
1 3 57 9

void print(String s)
to accept a string and print the first and last character of the string
eg Input Studying
Output First Character S
last Character g

void print(int a,char y)


to print the square root of the number a if char is ‘g’ or ‘G’
to print the cube root of the number a if char is ‘x’ or ‘X’

***************

You might also like