VIBGYOR HIGH
Revision Worksheet
AY 2025-2026
Computer Applications
Grade: X Max. Marks : 50
Date: DD/MM/2025 Time Allowed: 1 hour
INSTRUCTIONS:
• Answers 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.
• The intended marks for the questions or parts of questions are given
• alongside the questions.
• This paper is divided into 2 sections.
• Answer all questions from Section A, and any two questions from
Section B.
• This paper contains printed sheets.
______________________________________________________________________
SECTION A (20 marks)
(Attempt all questions from this section.)
Question 1 [8]
Choose the correct answer and write the correct option
i) Read the following text, and choose the correct answer: [1]
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 value
b. Call by reference
1
c. Constructor
d. Methods
ii) Asvi wrote a program to find the square root of a number. Although the program [1]
compiles successfully, the result displayed is not as expected. Help her identify the
type of error that occurred.
a. Syntax
b. Logical
c. Run time
d. All the above
iii) Komal wants to write a program in which she has to create a loop. She don’t know [1]
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
b. for
c. do…while
d. switch case
iv) In the bubble sort technique, during each iteration of the inner loop, two adjacent [1]
elements are __________and __________.
(i) compared (ii) swapped (iii) selected (iv) deleted
a. (i) and (ii)
b. (ii) and (iii)
c. (iii) and (ii)
d. (ii) and (iv)
v) Shyam was asked to encode a string S, by replacing the letter E with #. Select the [1]
appropriate statement:
a. [Link](‘#’,’E’)
b. [Link](“#”,”E”)
2
c. [Link](#,E)
d. [Link](“#”)
vi) Find the output of the following code: [1]
int s=14;
if(s>20)
[Link](“Over”);
else
[Link](“Under”);
[Link](“ the sky”);
a. Over the sky
b. Under the Sky
c. Over
the sky
d. Under
the sky
vii) Assertion: Arrays are used to store multiple values of the same data type in a [1]
single variable.
Reason: Arrays provide better memory utilization compared to individual variables.
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.
viii) Arrange the following in the descending order of number of bytes occupied. [1]
(i) char x[20] (ii) int a[4][2] (iii) double b[6]
a. (iii), (ii), (i)
b. (iii), (i), (ii)
3
c. (ii), (iii), (i)
d. (i), (ii), (iii)
Question 2 [12]
i) What is the value of p at the end of following code? [2]
int p = -5, q=-7; p--;
p*=p-- - --p + q++;
[Link]("P = "+p);
[Link]("Q = "+q);
ii) Write the output of the following code segment through a step-by-step dry run. [2]
int a=1205;
while(a!=0)
a++;
a%=10;
a/=10;
iii) Consider the following program segment and answer the questions given below [2] [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]?
iv) 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'');
v) Name the following: [2]
4
(i) A Math function that does not have an argument.
(ii) String function that finds the last occurrence of a given character.
vi) Write the output of the following [2]
String x=''Universe'', String b = ''Unity'';
(i) [Link]([Link](0)==[Link](0));
(ii) [Link]([Link](y));
SECTION B (30 marks)
Attempt any TWO questions
The answers in this section should consist of the programs in either Blue J
environment or any program environment with Java as the base.
Each program should be written using variable descriptions / Mnemonic Codes
such that the logic of the program is clearly depicted.
Flow charts and Algorithms are not required.
For programs Variable Description table is mandatory.
Question 3 [15]
Write a program to design a class ‘Search’ to read ‘n’ students name in an array
“name”. Accept a student name to search for, to check if the student is present in
the array. Using binary search technique. Before start searching arrange the name
in ascending order using bubble sort.
Question 4 [15]
Write a program to accept a sentence which is ended with ‘.’ Or ‘!’ then convert it
into uppercase case, if it is in lower case. Display the new word by joining the second
letter of every word.
Sample Input: You are writing computer applications worksheet
Sample Output: ORROPO
Question 5 [15]
5
Write a program to read elements for a 3x3 square matrix and perform the
following operations:
i) Display the 2D array elements in matrix format.
ii) Display sum of all the left diagonal and right diagonal elements of the array.
iii) Display product of all the odd numbers of the array.
Sample Run:
Enter 9 elements: 1 2 3 1 2 3 1 2 3
Given matrix
12 3
1 2 3
1 2 3
Sum of left diagonal Numbers: 12
Product of all odd Numbers: 27
*****