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
Which of the following backslash code used for bell?
\b
\a
\r
\s
Which is a jump statement?
go to
auto
for
struct
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
The statement that allow a set of instruction to be performed repeatedly are called
Control statements
Iteration statements
Conditional statements
Decisional statements
One of the following is not jump statement:
Goto
Break
Continue
Switch
Swapping of two characters means .
Exchange
Function
Arithmetic operation
Logical expression
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
The sequence contract means.
Statements get executed sequentially
Executed alternatively
Executed repeatedly
Executed depends upon a condition sequentially.
The purpose of a conditional operator is to:
Select one of the two values alternately
Select the highest of the two values
Select one of the two values depending on a condition
Select the most equal of the two values