java2

JAVA PROGRAMMING EXAM

Exam Instructions:

Total Number of Questions: 30
You will be required to answer a total of 30 multiple-choice questions.

Time Limit: 15 minutes for the entire exam
Once the time is up, the exam will automatically submit.

Passing Criteria:
A minimum score of 50% is required to pass the exam

Multiple Attempts:
You are allowed to take the exam multiple times. Only your highest score will be considered for certification.

Additional Instructions:

The exam timer cannot be paused once it begins.

Good luck, and feel free to retake the exam to improve your score!


java

JAVA PROGRAMMING EXAM

Test your JAVA skills with a challenging exam designed to evaluate your knowledge in programming, data structures, and algorithms

The certificate will be generated based on the information you provide in the form, so please ensure that all details are entered correctly.

1 / 30

1) What does System.out.println("The sum is: " + (2 + 3)) output?

2 / 30

2) What will System.out.println("hello".toUpperCase()) print?

3 / 30

3) What is the output of System.out.println(3 + "3" + 3)?

4 / 30

4) What does System.out.println(5 < 3 && 10 > 5) output?

5 / 30

5) What is the output of System.out.println(5 / 2.0)?

6 / 30

6) What will System.out.println("Hello World".contains("World")) print?

7 / 30

7) What is the output of System.out.println(3.5 * 2)?

8 / 30

8) What is the output of System.out.println("A" + 1)?

9 / 30

9) What does System.out.println(7 > 5 && 5 > 3) output?

10 / 30

10) What is a LinkedList in Java?

11 / 30

11) What is the purpose of java.lang.Object class?

12 / 30

12) What is the effect of the default keyword in interfaces?

13 / 30

13) What is the output of 1 << 2?

14 / 30

14) What does System.out.println("1" + "1" + "1") output?

15 / 30

15) What is the output of System.out.println("Java " + 5 + 5)?

16 / 30

16) What does Class.forName("className") do?

17 / 30

17) What is the output of System.out.println("abc".indexOf("b"))?

18 / 30

18) What is the output of System.out.println("abc".endsWith("c"))?

19 / 30

19) What is the output of System.out.println(0 + 1 + "1")?

20 / 30

20) What is the output of System.out.println((3 + 2) + (2 + 1))?

21 / 30

21) What is the output of System.out.println(2 + 2 + "2")?

22 / 30

22) What does System.out.println((5 + 5) * 2) output?

23 / 30

23) What will System.out.println(7 * 2 + " is fourteen") print?

24 / 30

24) What will System.out.println(5 / 2) print?

25 / 30

25) What is the output of System.out.println(5 > 3 && 3 < 5)?

26 / 30

26) What does System.out.println((int)(3.14 + 0.5)) output?

27 / 30

27) What is the output of System.out.println("Hello".length())?

28 / 30

28) What is the effect of break statement in loops?

29 / 30

29) What does System.out.println(2 == 3) output?

30 / 30

30) What is the purpose of the throws keyword in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *