WorksheetsC++ 2nd Online Quiz
Total questions: 10
Worksheet time: 5mins
Use the _________ statement to specify a block of code to be executed if the condition is false.
if
ladder else if
else
else if
Use __________ statement to specify a block of code to be executed, if a specified condition is true
else if
else
ladder if
if
Use ____________ statement to specify a new condition to test, if the first condition is false
else
else if
if
ladder else if
A _________ statement allows us to execute a statement or group of statements multiple times
while loop
do...while loop
for loop
loop
in this type of loop, the condition is evaluated first and if it returns true then the statements inside execute.
for loop
do...while
while loop
this type of loop is a repetition control structure that allows you to efficiently write a loop that needs to execute a specific number of times.
while loop
for loop
do...while loop
this type of loop is similar to while loop
for loop
do...while loop
nested loop
how many types of loops we have in the C++ platform?
4
5
3
how many types of conditional statements we have in the C++ paltform?
6
5
4
what is the function of these symbol ++ in loop statements?
condition
initialization
increment
