P6 Term 1 | ICT: Programming – input, process, output, three error types and three test cases | Tutor Lesson Plan | 45-minute flow, script, common errors, practice with answers
- 2026-12-02
Lesson prep guide · P6 Term 1 ICT
P6 submits a program after one run without a crash, and it dies when a classmate types a blank. Three parts, three error types and three test cases fix that.
01 Prior knowledge check (first 3 minutes)
If any of these is not secure, the lesson stalls; patch it first:
| Skill | Quick check | Pass standard |
|---|---|---|
| Averages | Average three numbers | Correct |
| Reading errors | Find the line number in a message | Points to it |
| Typing | Type quotes and brackets | Keys found |
02 Lesson flow (45 minutes)
| Time | Stage | Tutor does | Student does |
|---|---|---|---|
| 0-5 min | Two programs | One tested, one not | Say which is reliable |
| 5-15 min | Three parts | Input, process, output | Draw them |
| 15-27 min | Three errors | Syntax, logic, runtime | Fix one each |
| 27-37 min | Three tests | Normal, boundary, bad input | Fill the test table |
| 37-42 min | Debugging | Read message, find line, change one thing | Try once |
| 42-45 min | Exit check | Collect three answers; note part, error or test | Answer without notes |
03 Teaching script (read it aloud)
Act one: input, process, output
Students repeat: input, process, output – three.
Act two: three error types
Students repeat: syntax, logic, runtime – three.
Act three: three test cases
Students repeat: normal, boundary, bad input – three cases.
04 Question types and steps
| Type | Example | Steps | Answer |
|---|---|---|---|
| Parts | Which part averages the scores? | Process | Says output |
| Errors | A missing colon is which error? | Syntax | Says logic |
| Tests | How many cases? | Three: normal, boundary, bad | One run |
| Debug | Where do you look first? | The line number and type in the message | From line one |
Half of programming is testing: without a test table, one fix breaks another.
05 Three independent practice questions
| Question | Answer | What to observe |
|---|---|---|
| Name the three parts. | Input, process, output | Only output |
| Name the three error types. | Syntax, logic, runtime | Only syntax |
| What three test cases? | A normal value, a boundary value, bad input | Only a normal value |
06 Common errors and correction lines
| Error | Student usually writes | Tutor says |
|---|---|---|
| No tests | Submits after one run | “At least three cases.” |
| Mixed parts | Input and output on one line | “Write three parts.” |
| Last line only | Reads the end of the message | “Read the line number and type.” |
| No bad input | Tests normal only | “Bad input crashes most often.” |
07 Homework (paper and question numbers)
- P6 Maths test paper 1, Section A, questions 1 to 3: number work Averages and rounding are the process step
- P6 Chinese paper 1, Part B, questions 5 to 7: reading comprehension two Write the program flow as ordered prose
- P6 General Studies paper 1, Part C, questions 7 to 9: science and technology Sensor input, controller process, display output: the same structure
08 Exit check (last 3 minutes)
| Question | Answer | Verdict |
|---|---|---|
| The three parts? | Input, process, output | Reteach act one |
| The three error types? | Syntax, logic, runtime | Reteach act two |
| The three test cases? | Normal, boundary, bad input | Reteach act three |
09 Tutor FAQ
Which year is this for?
P6 Term 1 programming; P5 can do the parts and syntax, S1 can add functions.
Code in 45 minutes?
A short program and its test table; the full program is homework.
Is there a programming paper?
No separate paper; maths calculation and GS technology questions support it.
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.



