/en-tutor-prep-s3-term1-ict-conditionals/
/en-tutor-prep-s3-term1-ict-conditionals/
General Inquiry: info@TutorZone.com.hk
Office Hours: Monday to Saturday - 9:00 AM to 6:00 PM
WhatsApp Monday to Sunday - 24 hours
Hotline: +852 6828 1809
Instant Support: +852 9061 3106

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

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.

Lesson objectives Students can: 1) sort scores from 0 to 100 into A, B, C and F with 3 ifs and explain why the order cannot be reversed; 2) draw a 4-row truth table for two inputs and combine conditions with and, or and not; 3) prove the program still works at the boundary with 8 boundary tests and a 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

Grading is not one if but three ifs in a queue. The first diamond asks whether score is greater than or equal to 85; yes gives A. Otherwise ask whether it is at least 70; yes gives B. Otherwise ask whether it is at least 50; yes gives C. The final no falls through to F. 3 tests, 4 exits, one path per student. Why can the order not be reversed? Put the widest test, at least 50, first and a score of 92 matches it at once, so the whole class gets C and nobody reaches A. Look at the spread: of 240 students, 36 get A (15.0 per cent), 84 get B (35.0), 96 get C (40.0) and 24 get F (10.0), and the four percentages add to 100. Make students draw three diamonds and write one yes arrow to a grade before typing anything.

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

Two inputs need only 4 rows: true with true gives true, true with false gives false, false with true gives false, false with false gives false, that is and. For or only the last row is false. not simply flips one condition. The real question is a compound condition: pass needs score at least 50 and attendance at least 80 per cent. Three students: 72 with 90 per cent passes both; 72 with 79 per cent fails the second; 45 with 95 per cent fails the first. One of the three passes, a pass rate of 33.3 per cent.

Most common misconception: that and means first one thing then another. and is not order, it means both must be true. A second error is reading or as one or the other but not both; or means at least one is true, and both true also counts. A third is putting not in the wrong place: not score at least 50 merely flips the whole test and reads badly, so write score less than 50.

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

Conditional bugs almost never sit in ordinary values, they sit on the boundary. Three boundaries need two tests each: 85 and 84, 70 and 69, 50 and 49. That is 3 times 2, or 6, plus the highest 92 and the lowest 0, 8 values in all. Test 84 once and the bug in greater than 85 appears: 85 drops to B. A trace table writes every variable on every pass: total starts at 0, n runs from 1 to 10, only even n is added, so total ends at 110 after 10 additions, a mean of 11. Without the table students see a wrong answer but not the step where it went wrong. Make students line up the 8 test values, write the grade for each, and circle the first wrong one.

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
Conditional flow: three diamonds, four exits (score to grade)StartInput scorescore greater than or equal to 85 ?yesA85 or abovenoscore greater than or equal to 70 ?yesB70 or abovenoscore greater than or equal to 50 ?yesC50 or abovenoFotherwiseABA AND BA OR BNOT A11110100100101100001Truth table: 2 inputs, 4 rowsBoundary tests: 3 boundaries x 2 plus 2 extremes is 8 cases92A85A84B70B69C50C49F0F240 students: A 36, B 84, C 96, F 24A 15.0%B 35.0%C 40.0%F 10.0%

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.

Sanity check (must teach):Numbers on the spot: 36 plus 84 plus 96 plus 24 is 240, and 15.0 plus 35.0 plus 40.0 plus 10.0 is 100 per cent. Three boundaries times two plus two extremes is 8 tests. Even numbers from 2 to 20 sum to 110 in 10 terms, a mean of 11. Say greater than or equal to, not greater than: without the “or equal” a score of 85 becomes a B.

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)

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.

Take this guide with you

Reading the full guide is free. Downloading the print version, printing it for students, or taking a whole-level pack needs a tutor account (free).

Registered tutors also get:

Register as a tutor — freeAlready registered? Log in

Join as a tutor or coach — academic, music, sports, arts, STEM. Free to register. See how it works →