What will be the output of the following code fragments; i = j = 10; if (a < 10) {if (b > 50) ++i;} else ++j; cout < < "i=" < <i ; cout < < "j =" < < j ; if the input given is shown below: a = 30, b = 30
i = 10, j = 10
i = 10, j = 11
i = 11, j = 10
i = 11, j = 11
What will be the output produced by following code: for (int i = 10; i < = 50; i + = 10) { j = i/2; cout < < j < < " ; }
10 20 30 40 50
5 10 15 20 25
10 15 20 25 30
5 15 25 35 45
A loop that never ends is known as
Finite loop
Infinite loop
Exit loop
End loop
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
Which of the following backslash code used for bell?
\b
\a
\r
\s
The statement that allow a set of instruction to be performed repeatedly are called
Control statements
Iteration statements
Conditional statements
Decisional statements
A compound statement in C++ is a sequence of statements enclosed by
{}
()
[]
<>
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