JAVA QUIZ 2

29
Created on By Sirjana GhimireAcharya

JAVA QUIZ 2

1 / 10

  1. What is a correct syntax to output "Hello World" in java?

2 / 10

2. What is the correct syntax for java main method?

3 / 10

3. Java is short for "JavaScript".

4 / 10

4. Is an empty .java file a valid source file?

5 / 10

5. What is the default value of byte variable?

6 / 10

6. Object-Oriented Programming means..

7 / 10

7. Is it necessary that each try block must be followed by a finally block?

8 / 10

8. How do you create a variable with the numeric value 5?

9 / 10

9. How do you create a variable with the floating number 10.0?

10 / 10

10. Java keywords are written in lowercase as well as uppercase.

Your score is

The average score is 72%

0%