Professional Documents
Culture Documents
Computer Test Max Marks 30 Time: 1 HR
Computer Test Max Marks 30 Time: 1 HR
Being Brilliant:-
Computer test Max marks=30
Time : 1 hr
1. (a) Which of the following are valid comments? [2]
(i) /* comment */
(ii) /*comment
(iii) //comment
(iv) */ comment */
Math.sqrt(36-45)
Int a;b;c;
6. (a) Operators with higher precedence are evaluated before operators with
relatively lower precedence. Arrange the operators given below in order of higher
precedence to lower precedence. [2] (i) && (ii) % (iii) >= (iv) ++
(b) (b) Identify the statements listed below as assignment, increment, method
invocation or object creation statements. [2]
(i) System.out.println(“Java”);
(ii) costPrice = 457.50;
(iii) Car hybrid = new Car();
(iv) petrolPrice++;
10.Define:-[5]
Polymorphism
Token
Byte Code
Object
S%=a++ * ++c - ++a + 2* --a [s=2,a=3,c=5]