For fixed iterations, which of the following looping structure is used?
Do-while
While
For
If-else-if
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
The sequence contract means.
Statements get executed sequentially
Executed alternatively
Executed repeatedly
Executed depends upon a condition sequentially.
Which is a jump statement?
go to
auto
for
struct
A loop that never ends is known as
Finite loop
Infinite loop
Exit loop
End loop
The statement that allow a set of instruction to be performed repeatedly are called
Control statements
Iteration statements
Conditional statements
Decisional statements
Which of the following backslash code used for bell?
\b
\a
\r
\s
A compound statement in C++ is a sequence of statements enclosed by
{}
()
[]
<>