Java - MCQ
Multiple Choice Questions
Java MCQ - Loops, Decisions and Mathematical functions - Set 27
36. Which of the following loops will execute the body of loop even when condition controlling the loop is initially false?
A). do-while
B). while
C). for
D). none of the mentioned
View Answer
Correct: A
37. Which of these are selection statements in Java?
A). if()
B). for()
C). continue
D). break
View Answer
Correct: A
38. Which of these selection statements test only for equality?
A). if
B). switch
C). if & switch
D). none of the mentioned
View Answer
Correct: B