Tutorial Study Image

Java Online Quiz

Following quiz provides Multiple Choice Questions (MCQs) related to Java . You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.


Q 1 - Which among the following is true?

Show Answer
 Answer is : Option A

Q 2 - Automatic type conversion is done in java when, ________________ ?

Show Answer
 Answer is : Option A

Q 3 - IF (20 > 18) { system.out.println("20 is greater than 18"); } ELSE { system.out.println("20 is lesser than 18"); } The above code snippet throws an error in java why?

Show Answer
 Answer is : Option B

Q 4 - Which of the following is not a peculiarity of java?

Show Answer
 Answer is : Option C

Q 5 - A function that returns no value returns _______ ?

Show Answer
 Answer is : Option B

Q 6 - Which of the following keyword is used to "jump out" of a switch statement?

Show Answer
 Answer is : Option D

Q 7 - Which of the following data types do not support +,-,/ and *?

Show Answer
 Answer is : Option C

Q 8 - Which of the following methods is used for extracting more than one character from a string?

Show Answer
 Answer is : Option C

Q 9 - System.out.println("\"");. Outputs?

Show Answer
 Answer is : Option B

Q 10 - Which among the following is a valid identifier?

Show Answer
 Answer is : Option C