Tutorpip← About this lessonABCHide the answer keyDownload PDF
Coding · Ages 8+ · Set A
Zoe's clubhouse rules
Scan to mark
on screen
A
Name
Date
Start Finish
Goal: 15 min
Score/ 11
Remember: AND needs both parts to be true, OR needs at least one, and NOT flips true and false. Three small words build big rules.

Read and answer

Read the story, then answer.

The clubhouseZoe built a clubhouse with a secret door, and Bo was the door guard. Zoe's rule was: open only if the key is turned and the code is typed. Her little brother Max turned the key but typed no code, so the door stayed shut. Zoe added a doorbell with two buttons. The rule was: ring if the front button or the side button is pressed. Max pressed the side button and it rang. At dusk Zoe wanted the porch lamp to come on whenever it was not bright. Bo's light sensor answers just one question: is it bright? NOT flips the answer. At night the answer is no, NOT flips it to yes, and the lamp lights.
1
Look at the door rule. In how many of the four rows does the door open?
312
2
Look at the bell rule. In how many of the four rows does the bell ring?
314
3
OR is false only when both parts are false.
TrueFalse
4
NOT turns true into , and false into true.
falsebothone
5
In daylight, the sensor answers yes to is it bright? What does NOT bright give, and what does the lamp do?
💡No, so the lamp stays off🌙Yes, so the lamp lights🤷Nothing, because NOT does not change an answer
6
AND is true when only one part is true.
TrueFalse

Rules, order and fix

7
Join each word to what it does.
  1. 1AND
  2. 2OR
  3. 3NOT
  • Atrue when at least one part is true
  • Btrue only when both parts are true
  • Cflips true and false
8
Circle every rule that uses OR.
🍎Zoe has a snack if she is hungry or thirsty🔑Max may come in if he knows the code and has the key🔔The bell rings if the front or side button is pressed🌙The lamp lights if it is not bright
9
Max presses the side button. Put what happens in order.
  • The bell rings
  • The rule checks front OR side
  • One part is true
  • Max presses the side button
10
Zoe writes: open the door if the key is turned OR the code is typed. Max gets in with only the key. What is the mix-up to fix?
Change OR to AND, so both are neededChange the key to a bellChange OR to NOT
11
The table shows the sensor's answer to is it bright? on four evenings. The lamp rule is if NOT bright. On how many evenings does the lamp light?
421
12
Write one rule of your own that uses and, or, or not.
Scan the code at the top to mark this sheet on screenTake a photo of your answers or type them. It is marked for you automatically, and your score is kept.
Answer key · Set A
Zoe's clubhouse rules
11 AND needs both parts to be true, so only the row with the key turned and the code typed opens the door.
23 OR needs only one part to be true, so the bell rings in every row except the one where neither button is pressed.
3True The bell stays silent only when neither button is pressed.
4false NOT flips an answer around.
5No, so the lamp stays off NOT flips yes into no, so in daylight the lamp stays off. It lights when it is not bright.
6False AND needs both parts. With only one true part, it is false.
71-B, 2-A, 3-C AND needs both, OR needs at least one, and NOT flips an answer.
8Zoe has a snack if she is hungry or thirsty, The bell rings if the front or side button is pressed Hungry or thirsty and front or side each need just one part. The code and key rule is AND, and the lamp rule is NOT.
94, 2, 3, 1 OR needs at least one true part, and the side button is one, so the bell rings.
10Change OR to AND, so both are needed The rule needs both the key and the code, so it must use AND.
112 The lamp lights when the answer is no, because NOT flips no to yes. Evenings 2 and 4 say no, so the lamp lights on 2 evenings.
12Your own words: a grown-up reads it.
Mark each answer, count the right ones and write the score on the sheet.