Vidyalelo
C++ Programming · Q27

Control Flow Statements in C++

Programming · C++ Programming · question 27

Q27

In C++, what is the purpose of the 'do-while' loop?

A.
Terminates the loop
B.
Executes a block of code only once
C.
Executes a block of code repeatedly until a condition becomes false
Answer
D.
Executes a block of code repeatedly until a condition becomes true

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board