The statement that allow a set of instruction to be performed repeatedly are called
Control statements
Iteration statements
Conditional statements
Decisional statements
The conditional operator is an alternative to .
Switch
if-else
Simple if
While
A compound statement in C++ is a sequence of statements enclosed by
{}
()
[]
<>
A loop that never ends is known as
Finite loop
Infinite loop
Exit loop
End loop
A switch statement is used to
Switch between function in a program
Switch from one variable to another variable
To choose from multiple possibilities which may arise due to different values of single variable.
To use switching variables
Write the output of the following code. For ( int I = 0; I < 5 ; i+ + ) Cout < < pow (2, i ) ;
1 2 4 8 16
1 2 4 8 16 32
1 2 3 4 5
1 2 4 9 16
In simple if statement with no else, what happens if the condition following the if is false?
The program searches for the last else in the program
Nothing
Control falls through to the statement following 'if'
The body of the statement is executed
An if statement can have another if statement, is called.
Nested if
Nested
Nested for
Nesting
For fixed iterations, which of the following looping structure is used?
Do-while
For
If-else-if