Given:What is the output? A. Hello world!Bonjour le monde! B. Hello world!Hello world! C. Bonjour le monde!Hello world! D. Bonjour le monde!Bonjour le monde! Correct Answer: C
Given:What is the output? A. null B. A NoSuchElementException is thrown at run time. C. Duke D. A NullPointerException is thrown at run time. Correct Answer: C
Given:What is the output?banana orange apple lemon A. —–apple banana lemon orange—–—– B. banana orange apple lemon—–apple banana lemon orange—– C. —–—– D. —–banana orange apple lemon apple banana lemon orangebanana orange apple lemon apple banana lemon orange E. —–—– Correct Answer: D
Given the code fragment:What is the output? A. [-1, -2, -3] B. The compilation fails. C. A runtime exception is thrown. D. [-3, -2, -1] Correct Answer: C
Given:executed with this command:java Main one two threeWhat is the output of this class? A. 1) one2) two3) three B. A java.lang.ArrayIndexOutOfBoundsException is thrown. C. 1) one D. The compilation fails. E. nothing Correct Answer: A
Given:What is the output? A. :APPLE:ORANGE:BANANAappleorangebanana B. :APPLE:ORANGE:BANANA C. APPLE:apple ORANGE:orange BANANA:banana D. appleorangebanana:APPLE:ORANGE:BANANA E. apple:APPLE orange:ORANGE banana:BANANA Correct Answer: E
Given:What is the output? A. Hello world!Bonjour le monde! B. Hello world!Hello world! C. Bonjour le monde!Hello world! D. Bonjour le monde!Bonjour le monde! Correct Answer: C