10th Computer Unit Test I Paper
10th Computer Unit Test I Paper
10th Computer Unit Test I Paper
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.
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]
< ++ && ?:
9) What is message passing among objects?
10) What is information hiding?
Page 2 of 2