Conditional control structure – NFE

Which selection structure is best for checking multiple constant values?

 
 
 
 

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

 
 
 
 

Which statement allows multiple conditions to be tested sequentially?

 
 
 
 

Which selection structure is best suited for checking range conditions?

 
 
 
 

What is the output of the following code?

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

What will be the output of the following code?

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

 
 
 
 

How many cases can be included in a switch statement?

 
 
 
 

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

 
 
 
 

Question 1 of 10