Programming MCQS - QUESTION DETAILS

What is the purpose of the 'default' keyword in a switch statement?
A. Execute the default case
B. Define a default value
C. Provide a default constructor
D. Specify default permissions

'default' is used for the default case in a switch statement.

Similar Questions

What is the purpose of the 'instanceof' operator in Java?






What is the output of printf("%f", 10 / 3);?






What is the output of printf("%c", 65);?






Which operator is used to access the value pointed to by a pointer in C?






What does the 'sizeof' operator return for a pointer variable?






What is the purpose of the 'volatile' keyword in C?






What is the purpose of the 'break' statement in a loop in Java?






How do you declare an array in Java?






What is the output of System.out.println(Math.floor(7.8));?






How do you declare a global variable in C?