/en-tutor-prep-p6-term1-ict-programming/
/en-tutor-prep-p6-term1-ict-programming/
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

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

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.

Lesson objectives Students can: (1) describe input, process and output; (2) distinguish syntax, logic and runtime errors and say where to look; (3) write three test cases – normal, boundary and bad input.

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

Input reads data in; process calculates or decides; output shows the result. Written as three parts, a failure points to one of them; mixed together, one change disturbs three places.

Common misconception: shorter is better. Short and unclear costs several times the debugging.

Students repeat: input, process, output – three.

Act two: three error types

Syntax errors are a missing colon or bracket and stop the program before it runs; logic errors run but give the wrong answer; runtime errors divide by zero or hit a type mismatch and stop halfway. Each is found in a different place.

Common misconception: if it runs, it is correct. Logic errors always run, and only a test table catches them.

Students repeat: syntax, logic, runtime – three.

Act three: three test cases

Test at least three: a normal value (80 and 90, mean 85), a boundary (0 and 0), and bad input (the word full marks). All three passing is done; the bad input is the most ignored and the most likely to crash.

Common misconception: testing is the teacher’s job. The writer knows where it can break, so the writer tests.

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
Three parts – input, process, output; 3 error types; at least 3 test cases per programInputread the scoresProcessaverage and gradeOutputprint the resultTest table: input, expected, actualInputExpectedActual180, 90858520, 0003full marks100errorSyntaxmissing colon or bracketLogicwrong sum or orderRuntimedivide by zero, type mismatchTesting is not one run: a normal value, a boundary, and a bad input at minimum.All three passing is done; the third failing means missing types or validation.Read two things in an error: the line and the kind, not just the last line.

Half of programming is testing: without a test table, one fix breaks another.

Sanity check (must teach):Three parts, three error types and three test cases; three plus three plus three is nine checks; the six stages add to 45 minutes.

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)

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.

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 →