S3 Term 2 | ICT: Functions – Tutor Lesson Plan | 45-minute flow, teaching script, common errors, practice with answers
- 2026-11-30
Lesson prep guide · S3 Term 2 ICT
Students write the same formula three times without wrapping it in a function, then confuse returning with printing. An area function settles parameters, return values and scope.
01 Prior knowledge check (first 3 minutes)
If any item below fails, fix it first, or this lesson stalls:
| Skill | Quick check | Pass standard |
|---|---|---|
| Multiplication | The area of 5 by 3 | 15 |
| Order | Compute first or return first | Compute, then return |
| Variables | Can code outside read a variable defined in a function | No, it is local |
02 Lesson flow (45 minutes)
| Time | Stage | Tutor does | Student does |
|---|---|---|---|
| 0–5 min | Opening: three identical formulas | Compute an area three times and ask for a faster way | Say wrap it in a function |
| 5–14 min | Definition and call | Define an area function and call it three times | Write one call themselves |
| 14–23 min | Parameters and return | In goes 5 and 3, out comes 15 | Separate in from out |
| 23–32 min | Scope | Show that a local variable is invisible outside | Explain why |
| 32–40 min | Benefits and testing | Reuse, readability, testability, checked with 5 and 3 | Give the three benefits |
| 40–45 min | Exit check | Collect three answers and sort parameter, return and scope errors | Work without notes |
03 Teaching script (read it aloud)
Act one: wrapping a job in a name
Students restate: a function has a name, parameters and a return, and the gains are reuse, readability and testability.
Act two: parameters in, return out
Students restate: parameters in, return out, and returning is not printing.
Act three: scope and testing
Students restate: scope stays inside, and testing compares input with output.
04 Question types and steps
| Type | Example | Steps | Answer |
|---|---|---|---|
| Definition | An area function with two parameters | Multiply and return | area(5, 3) gives 15 |
| Direction | Parameters against return | In and out | Opposite directions |
| Scope | Is a local variable visible outside | Only inside | No |
| Testing | Average of five numbers | Total over count | 20 |
A function wraps a piece of work, gives it a name and parameters, and can be reused. An area function receiving length and width computes and returns one value; calling it three times replaces three copies of a formula with one piece of code to maintain. Parameters go in and the return value comes out, and variables inside the function exist only there, which is scope. The gains are reuse, readability and testability.
05 Three independent practice questions
| Question | Answer | What to observe |
|---|---|---|
| An area function receives 5 and 3: what does it return? | 5 times 3, which is 15 | 8 adds instead of multiplying |
| How does returning differ from printing? | Returning lets the caller use the value; printing only displays | “They are the same” misses the difference |
| Can code outside read a variable defined inside a function? | No, scope is local | Yes means scope is not understood |
06 Common errors and correction lines
| Error | Student usually writes | Tutor says |
|---|---|---|
| Return as print | “Returning just prints the result” | “Printing displays; returning hands the value back for further use.” |
| Parameter order | “area(3, 5) and area(5, 3) differ” | “Multiplication commutes, but subtraction and division do not, so pass in the defined order.” |
| No return | “Computing is enough, no need to return” | “Without a return the caller gets nothing, so the work is wasted.” |
| Scope confusion | “A variable set inside is readable outside” | “Local variables stay inside; use the return value to get results out.” |
07 Homework (paper and question numbers)
- S3 ICT, algorithms and flowcharts, set 1, question 4, variable trace Question 4 updates variables step by step, the same computation inside a function
- S3 ICT, algorithms and flowcharts, set 1, question 8, swapping variables Question 8 swap can be written once as a function, the reuse idea
- S3 ICT, algorithms and flowcharts, set 1, question 1, what an algorithm is Question 1 defines an algorithm, echoing the input-and-output definition of a function
08 Exit check (last 3 minutes)
| Question | Answer | Verdict |
|---|---|---|
| Name the three benefits of functions | Reuse, readability, testability | “Convenient” is too vague; reteach act one |
| Which way do parameters and returns flow? | Parameters in, return out | The same direction is a confusion; reteach act two |
| Is a local variable visible outside? | No, scope stays inside | Yes means scope is unclear; reteach act three |
09 Tutor FAQ
Which year is this page for?
S3 Term 2, the functions unit in local secondary ICT; later years add recursion and modular design.
Is 45 minutes enough for definition and scope?
Yes. Nine minutes on definition, nine on parameters and returns, eight on scope and nine on benefits and testing, with the rest for practice and the exit check.
Is there a matching worksheet?
Yes. The homework links to questions 1, 4 and 8 of set 1 of the S3 ICT algorithms paper, all 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.



