Vidyalelo
C++ Programming · Q36

Control Flow Statements in C++

Programming · C++ Programming · question 36

Q36

What is the purpose of the 'if' statement in C++?

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

Answer: Option C

Solution

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