Conditional control structure – NFE

Which selection structure is best for checking multiple constant values?

 
 
 
 

Which selection structure is best suited for checking range conditions?

 
 
 
 

Which statement allows multiple conditions to be tested sequentially?

 
 
 
 

What will be the output of the following code?

int x = 10;
x > 5 ? printf(“Greater”) : printf(“Smaller”);

 
 
 
 

Which keyword is necessary in a switch case to prevent fall-through?

 
 
 
 

Which operator is used in the conditional (ternary) operator?

 
 
 
 

What is the default case in a switch statement used for?

 
 
 
 

What is the output of the following code?

int x = 5;
if (x > 3)
printf(“Hello”);
else
printf(“World”);

 
 
 
 

Which control structure is used to make decisions based on conditions?

 
 
 
 

How many cases can be included in a switch statement?

 
 
 
 

Question 1 of 10