Which operator is used as an alternative to if-else?
+
?:
%
>
Which header file is included in the program to use exit() function?
Iostream.h
process.h
stdio.h
math.h
Which among the following is a simplest statement in C++?
null
compound
selection
looping
Which function is used to break out of the program?
Break
continue
exit()
skip
What will occur when a break is missing in case statement?
fall through
end of switch
exit out of the case
none of these
Which loop is preferable to execute the loop body at least once?
do while
while
for
nested
Which statement is used to transfer program control within a function?
looping statements
jump statement
conditional statement
decision
Which type of loop does not contain any statement in its loop-body?
for loop
empty loop
while loop
infinite loop
What type of value will get when the expression of a selection statement evaluates to true?
Zero
non zero
negative
no value
Which statement is used to reach the end of switch statement?
default
case
break
exit