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

Ajay Chaudhary Classes

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 */

(b) What is meant by a package? Name any two Java Application


Programming Interface packages. [2]

2. Name the operators listed below[4]


 <
 ++
 &&
 ?::
3. State one difference between floating point literals float and double. [2]

4.Name the following:[2]

(a)A keyword used to call package

(b)Any one reference data type

5.Name the types of errors in each of the case given below:[2]

 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++;

7.What do mean by Data Abstraction?Explain with the help of an example.[2]

8.Write the following as java expression.[2]

9.Differentiate between Compiler and Interpreter.[3]

10.Define:-[5]

 Polymorphism
 Token
 Byte Code
 Object
 S%=a++ * ++c - ++a + 2* --a [s=2,a=3,c=5]

You might also like