Form 4: If-Then-Else Decision Making Exercise

Form 4: If-Then-Else Decision Making

10 minutes 3 views 0 saves EN
Send as Assignment
Form 4: If-Then-Else Decision Making

Practice using if-then-else statements to handle multiple outcomes and direct decision-making paths.

Questions

  1. MultiChoice

    What does the ELSE part of an IF-THEN-ELSE statement do?

  2. MultiChoice

    Consider: 'IF score >= 60 THEN print Pass ELSE print Fail'. If score is 45, what is printed?

  3. MultiChoice

    Consider: 'IF score >= 60 THEN print Pass ELSE print Fail'. If score is 80, what is printed?

  4. WordsBox

    The ____ block runs when the IF condition is ____

  5. MultiChoice

    Why is IF-THEN-ELSE useful?

  6. MultiChoice

    'IF traffic light is green THEN go ELSE stop'. The light is red. What should you do?

  7. MultiChoice

    In an IF-THEN-ELSE structure, how many branches are executed for one test?

  8. WordsBox

    An IF-THEN-ELSE statement offers ____ paths based on a single ____

  9. MultiChoice

    'IF temperature < 0 THEN print Freezing ELSE print Warm'. Temp is -5. What is printed?

  10. MultiChoice

    'IF total >= 50 THEN discount = 10 ELSE discount = 0'. Total is 50. What is discount?

  11. MultiChoice

    Which keyword provides an alternative action when IF condition fails?

  12. MultiChoice

    What is the main difference between IF-THEN and IF-THEN-ELSE?