Conditional control structure – NFE

Which statement allows multiple conditions to be tested sequentially?

 
 
 
 

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

 
 
 
 

Which selection structure is best suited for checking range conditions?

 
 
 
 

How many cases can be included in a switch statement?

 
 
 
 

What will be the output of the following code?

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

What is the output of the following code?

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

 
 
 
 

Which selection structure is best for checking multiple constant values?

 
 
 
 

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

 
 
 
 

Question 1 of 10