The continue statement cannot be used with…
a) for
b) while
c) switch
d) do while
Which keyword can be used for coming out of recursion?
a) return
b) break
c) exit
d) none of these
Which of the following datatypes are accepted by switch statement?
a) int
b) char
c) long
d) all of these
Which of the following is an invalid if-else statement?
a) if (if (a == 1)) {}
b) if (a){}
c) if ((char) a) {}
d) if (func1 (a)) {}
Which statement is used when single block of statement is executed?
a) if statement
b) if-else statement
c) nested if
d) switch statement
Which statement is used when if block is skipped and other else block of code is executed?
a) if statement
b) if-else statement
c) nested if
d) switch statement