[go: up one dir, main page]

0% found this document useful (0 votes)
44 views2 pages

Students Are Not Allowed To Leave Examination Hall Before 60 Minutes

Uploaded by

namithasaamala
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views2 pages

Students Are Not Allowed To Leave Examination Hall Before 60 Minutes

Uploaded by

namithasaamala
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

1. A) Explain the features (buzzwords) of the Java language?

B) Explain about History of Java?

2. A) What is Variable? and explain the different types of variables with an example
program?
B) What is Scope and life time of variables?

3. A) Define a class and object with an example program?


B) Explain about summary of Object Oriented programming concepts?

4. A) Explain different types of data types in java?


B) What is an array in java with example program?

Answer All Questions. All Questions Carry Equal Marks. Time: 20 Min. Marks: 10.
I Choose the correct answers:

NOTE: Students are not allowed to leave examination hall before 60 minutes

1. On which platforms Java runs? ( )


(a) Windows (b) Mac OS
(c) UNIX (d) All of these
2.Which one of the following is not a primitive data type? ( )
(a) byte (b) short (c) long (d) class

2. Which one of the following is Equality operator in Java? ( )

(a) >= (b) <= (c) != (d) ==

3. Which one of the following is an Unary operator in Java? ( )

(a) () (b) * (c) ++ (d) +

4. Java program processing always starts with main() method ( )

(a)true (b) false (c) starts with class (d) None of the above

5. Java is case sensitive language ( )

(a) false following operators (b) true (c) Both cases are allowed (d) None of the above

6. Which of the has more precedence? ( )

(a) () (b) ++ (c) * (d) >=

7. int a = 8;

System.out.println(++a); // the output should be ( )

(a) 10 (b) 11 (c) 9 (d) 7

9. int a = 30,b=20;

System.out.println(a-b); // the output should be ( )

(a) 10 (b) 20 (c) 30 (d) Compilation Error

10. for(int i = 0; i<5; i++ ) { System.out.println("Welcome to java program"); }

//How many times “Hello world” is printed? ( )


(a) 10 (b) 7 (c) 9 (d) 5

Fill in the blanks.

1. JDK stands for___________________

2. Where the memory is allowcated to local variable______________ static variables ____________

3. Abstract class defined by _____________ keyword

4. JVM stands for______

5. Java program is _____________.

6. Instance of class is called _____________

7 How to create Object_____________.

8. ____________ is a concept in OOP which hides unimportant implementation details from other objects.

9. Where the memory is allowcated to instance variables__________________

10. Every statement should terminate with the _____ Symbol in Java.

You might also like