CPP Do While Loop MCQ
Cpp MCQ- Home
- Tutorials
- Cpp
- Do While Loop
- Multiple Choice Question
(1) Which of the following symbol is used after condition in do while statement ?
A) ;
B) .
C) :
D) ,
Explanation
Semicolon is used after condition in do while loop.
(2) Which of the following is type of post test loop ?
A) while
B) do while
C) for
D) None
Explanation
do while loop is post test loop.In this loop condition comes after body of the loop. First statement execute and then condition is evaluated.