S3 Term 1 | ICT: Conditionals and Boolean Logic (if, else, truth tables, trace tables) — Tutor Lesson Plan | 45-minute flow, teaching script, common errors, practice with answers
- 2026-12-03
Tutor lesson plan · S3 Term 1 ICT
Every student can type an if, yet nobody can say why a score of 90 comes out as a C. The boundary is written as greater than 85 instead of greater than or equal to 85 and the whole class drops a grade. This lesson turns conditionals into three boundaries, one truth table and one trace table.
01 Prior knowledge check (first 3 minutes)
If any of these is not secure, the lesson stalls; repair it first:
| Skill | Quick check | Pass standard |
|---|---|---|
| Comparison operators | write the condition for 85 or above | score greater than or equal to 85 |
| Assignment | after score = 90, what is score | 90; one equals sign assigns |
| Indentation | which lines belong to the if | the lines with the same indent |
| Flowchart diamond | how many exits a diamond has | two: yes and no |
02 Lesson flow (45 minutes)
| Time | Stage | Tutor does | Student does |
|---|---|---|---|
| 0-5 min | Diagnostic | Write a grading if; watch the boundary and the order | Most write greater than 85 |
| 5-13 min | Three boundaries | Mark 85, 70 and 50 on a number line and place four scores | Place the cards for 92, 85, 84 and 50 |
| 13-25 min | Order trap | Put the widest condition first and the whole class becomes C | Rewrite the order correctly |
| 25-37 min | Truth table | and, or, not in 4 rows, then pass or fail on two conditions | Fill the table and judge three students |
| 37-42 min | Boundary and trace | Run 8 test values and record every variable | Test each other in pairs |
| 42-45 min | Exit check | Collect three items; note order, boundary or logic errors | Work without notes |
03 Teaching script (read it aloud)
Act 1: three diamonds, four exits
Students repeat: three diamonds, four exits, conditions run from tight to loose; reverse them and everyone gets C.
Act 2: a truth table is the only way to keep and and or apart
Make students put the three students in one table, write each condition as true or false, then the and result.
Students repeat: and needs both true, or needs at least one, not flips a single condition.
Act 3: boundary tests and a trace table
Students repeat: three boundaries times two plus two extremes is 8; one trace row per pass.
04 Question types and steps
| Type | Example | Steps | Answer |
|---|---|---|---|
| Single if | print pass when score is at least 50 | one diamond, one yes exit | runs only when true |
| if and else | pass or fail | two exits, one always runs | else takes no condition |
| if and elif ladder | sort 0 to 100 into A, B, C, F | 3 diamonds, tight to loose | A from 85, F below 50 |
| Compound condition | score at least 50 and attendance at least 80 | evaluate each, then combine with and | both must be true |
Left: three diamonds are three ifs, each with one yes exit; the last no falls straight to F, so four grades need only three tests. Right: a four-row truth table for two inputs, then eight boundary cases (92, 85, 84, 70, 69, 50, 49 and 0) and the grade spread for 240 students.
05 Three independent practice questions
| Question | Answer | What to observe |
|---|---|---|
| Write the if and elif conditions that sort scores into four grades with boundaries 85, 70 and 50, and give the grade for 90, 70, 50 and 40. | 90 is A (at least 85), 70 is B (at least 70), 50 is C (at least 50), 40 is F. | Writing greater than instead of greater than or equal to drops 70 to C |
| Draw the truth table for (age at least 18) and (has_ticket equals True), 4 rows. | true with true is true, the other three rows are false; only both true enters. | Writing only two rows, or copying the or result into and |
| Trace this program: total is 0, n runs from 1 to 10, add n when n divided by 2 leaves remainder 0. What is total and how many additions? | total is 30 after 5 additions (2, 4, 6, 8 and 10). | Adding the odd numbers too for 55, or starting n at 0 |
06 Common errors and correction lines
| Error | Student usually writes | Tutor says |
|---|---|---|
| One equals sign for comparison | if score = 90: | Comparison needs two equals signs; one assigns 90 to score. |
| Reversed order | test at least 50 before at least 85 | Order conditions tight to loose; the widest first catches 92 as well and gives C. |
| Missing else | only print pass when score is at least 50 | Every if needs an otherwise branch; without else a failing student is silently ignored. |
| Boundary written as greater than | if score greater than 85: | Write greater than or equal to; with greater than, the 85-mark student drops a grade. |
07 Homework (paper and question numbers)
- S3 ICT algorithms and flowcharts, set 1, question 5 (N equals 7, odd or even) It tests remainder zero against otherwise, the one-diamond two-exit case in Act 1.
- S3 ICT algorithms and flowcharts, set 1, question 10 (a parallelogram used as a decision) It targets the meaning of the diamond: a decision has yes and no; a parallelogram is input or output.
- S3 ICT algorithms and flowcharts, set 2, question 2 (how many exits a decision has) The answer is two, which pairs with three diamonds and four exits here.
- S3 ICT algorithms and flowcharts, set 2, question 10 (does a while loop always run once) It shows a condition that is false at the start, the same no branch as Act 2.
08 Exit check (last 3 minutes)
| Question | Answer | Verdict |
|---|---|---|
| Why do three boundaries need only 3 ifs for four grades? | Each if removes one grade and the rest fall to F, so 3 tests give 4 exits. | Answering four ifs means reteach Act 1 |
| Which rows make and and or differ? | true with false, and false with true: and is false, or is true | No answer means reteach Act 2 |
| How many values must the three boundaries be tested with? | 8: each boundary at the value and one below, plus the highest and lowest | Answering three means reteach Act 3 |
09 Tutor FAQ
Which year is this page for?
S3 Term 1 programming; S2 can use it after flowcharts and S4 can revisit compound conditions.
Can 45 minutes cover if, a truth table and a trace table?
Yes: 5 diagnostic, 8 boundaries, 12 order trap, 12 truth table, 5 boundary tests, 3 exit. The trace table goes home.
Is there a paper to hand out?
Yes, the homework links questions 5 and 10 in both S3 ICT algorithm sets, with answers.
Find a tutor freeTutor sign-up →
©2026 TutorZone · www.tutorzone.com.hk · Terms of use · All rights reserved. Original TutorZone material for personal study and teaching only; not for resale or republication.



