BCA - C Conditional Statements
Questions No: 1/14

Choose a correct statement about a C Switch Construct.

Questions No: 2/14

The value that follows the keyword CASE in switch statement may only be

Questions No: 3/14

Which of the following cannot be checked in a switch case statement?
स्विच केस स्टेटमेंट में निम्नलिखित में से किसकी जाँच नहीं की जा सकती है?

Questions No: 4/14

Switch statement accepts.

Questions No: 5/14

Which of the following cannot be checked in a switch-case statement?

Questions No: 6/14

In the following nested conditional statements, which branch will execute?

int x = 4;
if (x > 2) {
if (x < 5) {
printf("x is between 2 and 5");
}

else {
printf("x is 2 or less");
}

Questions No: 7/14

What is the output of the following code?

int x = 5;
if (x > 3) {
 printf("Greater than 3");
 } else {
 printf("Not greater than 3");
 }

Questions No: 8/14

What will the following code print?

int x = 5;
if (x = 0)
printf("Zero");
else
printf("Not zero");

Questions No: 9/14

What is required to avoid falling through from one case to the next?

Questions No: 10/14

Which of the following correctly describes the switch statement in C?

Questions No: 11/14

The type of the controlling expression of a switch statement cannot be of the type ........

Questions No: 12/14

The keyword break cannot be simply used within
कीवर्ड ब्रेक का उपयोग केवल भीतर नहीं किया जा सकता है

Questions No: 13/14

Which datatype can accept the switch statement?
कौन सा डेटाटाइप स्विच स्टेटमेंट स्वीकार कर सकता है?

Questions No: 14/14

What is the output of the following code?

int a = 5, b = 10;
if (a < b)
printf("a is less than b");
else
printf("a is greater than or equal to b");