Conditional control structure – NFE

Which selection structure is best suited for checking range conditions?

 
 
 
 

How many cases can be included in a switch statement?

 
 
 
 

Which statement allows multiple conditions to be tested sequentially?

 
 
 
 

What is the output of the following code?

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

 
 
 
 

What will be the output of the following code?

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

Which selection structure is best for checking multiple constant values?

 
 
 
 

Question 1 of 10