10th Computer Unit Test I Paper

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

PRESTIGE SCHOOL

Affiliated to ICSE (KA270), New Delhi


Arkavathi layout, Hennur-Bagalur main road, Bengaluru-77

First Unit Test - JULY 2023


SUBJECT: COMPUTER APPLICATION
GRADE: X Marks: 50
Date: 27-07-2023 Time: 11/2 hrs

INSTRUCTION:
• Answer to this paper must be written on the paper provided separately.
• You will not be allowed to write during the first 10 minutes. Thistime is to be spent in reading the
question paper.

Section – I [20 Marks]


(Attempt ALL questions from this section)

Question 1:
A. Choose the Correct answer: [10]
i) Which of the following is not a token?
(a) Keywords (b) Identifiers (c) Statement (d) Operators
ii) Identify the illegal identifier from the following.
(a) _CHK (b) αβγτ (c) 20_Mark (d) A_Z
iii) Which of the following statements terminates the complete execution of a loop?
(a) stop (b) break (c) continue (d) system.exit(0)
iv) Absence of which statement causes a fall-through in a switch statement.
(a) continue (b) stop (c) fall (d) break
v) The Math class is part of which Java library package.
(a) java.util (b) java.io (c) java.lang (d) java.scanner
vi) i += 2 is equivalent to
(a) i = i++ (b) i = i+2 (c) i =+ 2 (d) i++
vii) Which of the following does not represent a character literal?
(a) ‘a’ (b) “a” (c) ‘1’ (d) ‘\a’
viii) The values of data member or member variables at any given point of time determine an
objects?
(a) Data type (b) state (c) behaviour (d) method
ix) Math.pow(625, 1/2 ) + Math.sqrt(144)
(a) 17.0 (b) 13.0 (c) 37.0 (d) 13
x) The style of expressing single line comment is:
1) /* comment */ (b) /* comment
(c) // comment (d) // comment //

Page 1 of 2
B. Answer the following (50 words): [10]

1) What is a method? Can there be objects without having any methods?


2) Why are objects said to be instances of a class?
3) What kind of program elements are the following?
13, 'a', 4.38925, "a", main( )
4) What is an identifier? What is the identifier forming rule(s) of Java?
5) What is a character constant in Java? How are non-graphic characters represented in Java?
6) Define inheritance.
7) Define polymorphism.
8) Name the operators listed below:

< ++ && ?:
9) What is message passing among objects?
10) What is information hiding?

Section – II [30 Marks]


(Attempt any three questions from this section)

C. Answer the following: [30]


1) How do you map an abstraction into software & how are real world objects
implemented/represented in software terms?
2) Explain the following:
a) 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++)
System.out.println(i);
System.out.println(i * 4);
b) Find the error and explain:
x = 3;
y = 4;
z = math.power(x*x, y/2);
c) Write a program to input three numbers and print their sum of square.
3) Write a program to print a pattern as:
a) 1 b) A
10 AB
101 ABC
1010 ABCD
10101 ABCDE
4) Classify the primitive & non-primitive datatypes. (Explain each primitive data type)
5) Write a program to print a pattern as:
a) 1 2 3 4 5 b) 1
1234 12
123 123
12 1234
1 12345

Page 2 of 2

You might also like