Starter quiz

  • What will be output when this program is executed?
    What will be output when this program is executed?
    • Good afternoon
    • How are you?
    • Good afternoon How are you?  ✓
    • Nothing will be output.
  • What will be output when this program is executed?
    What will be output when this program is executed?
    • Good afternoon How are you?  ✓
    • How are you?
    • Good morning Good afternoon How are you?
    • Good morning How are you?
  • Which conditions would evaluate as True with the following inputs?
    Which conditions would evaluate as True with the following inputs?
    • number1 > 20 or number2 < 100
      number1 > 20 or number2 < 100  ✓
    • number1 > 20 and number2 < 100
      number1 > 20 and number2 < 100  ✓
    • number1 > 30 or number2 < 90
      number1 > 30 or number2 < 90
    • number1 > 30 and number2 < 91
      number1 > 30 and number2 < 91
  • =, < and > are all...
    • comparison operators.  ✓
    • logic operators.
    • conditions.
    • variables.
  • and, or and not are all...
    • logic operators.  ✓
    • comparison operators.
    • conditions.
    • variables.
  • Match the logic operator to the correct description.
    • and
      True when both values are True ✓
    • or
      True when either or both values are True ✓
    • not
      True when the value is False ✓
+