Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1IF it is Saturday AND it is sunny THEN | AThe steps run when at least one condition is true: rain, wind, or both. | |
| 2IF it is raining OR it is windy THEN | BIF it is raining OR it is very sunny THEN take umbrella | |
| 3Use AND when both things must be true before the school bag is packed for swimming | CThe steps run only when both conditions are true: it is Saturday and it is sunny. | |
| 4Use OR when either one of two things is enough to take an umbrella | DIF it is Tuesday AND it is swimming day THEN pack towel | |
| 5IF it is Saturday OR it is sunny THEN go to the beach (only on sunny Saturdays) | EOR lets the steps run on any Saturday or any sunny day. It should be AND because both must be true. | |
| 6IF score > 50 AND score < 20 THEN say "Try again" | FNo score can be both over 50 and under 20, so AND is never true. It should be OR if either one is enough. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
AND / OR — AND is true only when both conditions are true. OR is true when at least one is true. Saturday AND sunny needs both; Saturday OR sunny needs just one.IF day = "Saturday" AND
weather = "sunny" THEN
SAY "Go to the beach"
END IFIF day = "Saturday" OR day = "Sunday" THEN
SAY "No school today"
END IFIF age >= 10 AND age <= 12 THEN
SAY "Join the group"
END IFIF ticket = "yes" AND money > 5 THEN
SAY "Enter the show"
END IFIF mark < 40 OR mark > 90 THEN
SAY "Check this mark"
END IF