C Programming MCQ : Switch Case Multiple Choice Questions
Question 31 |
We can use semicolon at the end of switch case.
switch(count);Or
#include <stdio.h> int main(int argc, char *argv[]) { switch(1) { case 1: printf("hello"); break; }; return 0; }State Whether True/False ?
False | |
True |
Question 32 |
Nesting of Switch Case is allowed.
switch(alpha) { case 'a': case 'A': printf("Alphabet A"); break; case 'b': case 'B': switch(alpha) { } break; }State Whether True/False ?
False | |
True |
Question 33 |
Switch case can have case label as variable of type "const".
int const var = 2; switch(num) { case var: printf("Number = 2"); break; }State Whether True/False ?
True | |
False |
Question 34 |
Break Statement takes control out of the switch. State Whether True/False ?
False | |
True |
Question 35 |
Continue Statement can be used inside switch case under any of the label. State Whether True/False ?
False | |
True |
Question 36 |
Two or more cases may share one break statement. (True/False)
False | |
True |