Conditions That Combine: And, Or and Not · seed 1 · A4, ink-friendly. The answer key prints on its own page for grown-ups.

Combining tests with and, or, and not

Computing · Computing Fundamentals · ages 12-13
Name ______________________   Date ____________
  1. The rule is raining or snowing. It is raining but not snowing. Is the rule true?

    • No, both parts must hold
    • Yes, or needs only one true part
    • Only at night
  2. The rule is sunny and warm. It is sunny but cold. Is the rule true?

    • No, and needs every part true
    • Yes, one true part is enough
    • Only on weekends
  3. The timer has run out. Is the test timer has not run out true or false?

    • True
    • Neither
    • False
  4. The bonus needs score over ten and time left. Score is 12, time ran out. Does the bonus open?

    • Yes, the score is enough alone
    • No, one part fails
    • Only on replay
  5. The bonus needs score over ten and time left. Score is 12, time is left. Does the bonus open?

    • Yes, both parts hold
    • No, 12 is too small
    • Only with a password
  6. Not hungry is true exactly when hungry is false.

    Circle one:   True   False

  7. A door should open for a red key and a turned handle. With or in the code, the red key alone opens it. Which case breaks the code, and what is the fix?

    • The red key alone breaks it, swap or for and
    • No case breaks it, or is correct
    • A blue key breaks it, buy a new door
  8. A discount needs member or coupon. Sam is a member with no coupon and gets the discount. A friend calls this a bug. Who is right?

    • The friend, both are always needed
    • Neither, discounts are random
    • Sam, or needs only one part
LightMySky · lightmysky.comW1-mt_ZYdtXQZy5r-s1

Answer key

For grown-ups. Fold this page away before handing over the rest.

Combining tests with and, or, and not W1-mt_ZYdtXQZy5r-s1

  1. Yes, or needs only one true part · Or needs at least one true part, and raining holds.
  2. No, and needs every part true · And needs every part true, and the warm part fails here.
  3. False · Not flips the result, and the timer did run out.
  4. No, one part fails · The timer part fails, and one failing part breaks a whole and.
  5. Yes, both parts hold · Twelve beats ten and time is left, so both parts of the and hold.
  6. True · Not flips a test to its opposite, with nothing in between.
  7. The red key alone breaks it, swap or for and · A one-sided case slips through or, which proves the code needed and.
  8. Sam, or needs only one part · Or is satisfied by one true part, so the member alone earns the discount.
Worksheet · LightMySky