Java Questions & Answers – Control Statements SET-1

Java Basic MCQs | Java Multiple Choose Question with answer


Q.1 Which of the following selection statement in java ?

ANSWER= (A) if()


Q.2 Which of the following Iterative statement in java ?

ANSWER= (B) for()


Q.3 Which of the following is entry controlled loop

ANSWER= (A) while()


Q.4 Which of the following is Exit controlled loop

ANSWER= (B) do while()


Q.5 Syntax of While loop ?

ANSWER= ( A) intialization
while (condition) {


Q.6 The switch statement does not require a break

ANSWER= (B) False


Q.7 The while loop repeats a set of code while the condition is false

ANSWER= (B) False


Q.8 The do-while loop repeats a set of code atleast once before the condition is tested

ANSWER= (A) True


Q.9 The for loop repeats a set of statements a certain number of times until a condition is matched.

ANSWER= (A) True


Q.10 Which of the following loops will execute the body of loop even when condition controlling the loop is initially false?

ANSWER= (A) switch

error: Content is protected !!