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 structure can be enclosed inside another selection structure?
a) if statement
b) if-else statement
c) nested if
d) switch statement
Which statement have this
statement If(condition){if(condition){statement}else{statement}}?
a) if-else
b) if
c) nested if
d) switch
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
Which statement is used to select a block of statement is based on the value or variable?
a) if statement
b) if-else statement
c) nested if
d) switch statement