Sparklabs Learning / Digital Technology
JSS 3 First Term
Week 3: Functions, Arrays and Data Structures
- School
- Creative Brains Academy
- Subject
- Digital Technology
- Pack
- Curriculum only
- Prepared
- 7 November 2026
Week index
- 01Senior Review and Computational Problem Solving
- 02Advanced Programming
- 03Functions, Arrays and Data Structures
- 04Object-Oriented Programming
- 05Database Systems
- 06Computer Networks and Internet Technologies
- 07Web Development and Web Design
- 08Software Development Life Cycle
- 09Electronic Commerce
- 10Cyber Security and Emerging Digital Technologies
- 11Revision
- 12Examination
Week 3 / First Term
Functions, Arrays and Data Structures
Monday 21 September 2026 to Friday 25 September 2026
Curriculum outline
Lesson objectives
By the end of the week, learners should be able to:
- Define a function and state its input and output parameters.
- Call a function by passing values correctly.
- Declare a one-dimensional array and index elements properly.
- Use an array to store multiple values in sequence.
- Trace a function call returning a value correctly.
Key vocabulary
- Function: a reusable block performing one computation.
- Parameter: an input variable receiving a passed value.
- Return: giving a value back to the caller after computation.
- Array: a sequence stored in consecutive memory slots.
- Index: the position number of an element in the array.
- One-dimensional array: an array storing values along one axis.
- Reusable block: a section of code called multiple times with different inputs.
- Trace: predicting results by stepping through code.
Common misconceptions
- "Functions replace loops." Functions handle single operations; loops handle repetition.
- "An array stores text." Arrays store homogeneous values; text often sits in a string type separately.
- "Index starts at zero always." Zero-based indexing is common but some languages start elsewhere.
Teacher activities
- Starter: ask why repeated tasks should use functions rather than duplication.
- Define a function and give input and output parameters explicitly.
- Demonstrate calling a function by passing values.
- Declare a one-dimensional array and index elements step by step.
- Demonstrate calling a function returning a computed value.
- Close with the function-trace task and exit question.
Student activities
- Answer the starter and state the benefit of reusing functions.
- Define a function in their own words and name input and output parameters.
- Call a function by passing the correct values.
- Declare a one-dimensional array and index elements properly.
- Trace a function call and write the returned value.
- Answer the exit question comparing functions with loops in one sentence.
Practical / learning evidence
A declared array with indexing exercises, a function call with a returned value, and a function-trace worksheet. Submit all three for marking.
Resources and preparation
Computers with the interpreter, blank arrays and sample tracing cards. Prebuild the interpreter in a read-only folder. Disable Caps Lock before typing. Verify the computer starts reliably.
Assessment for learning
Inspect the array declaration for correct indexing. Check the function return value matches the traced result. Mark the function trace for correct parameter passing. Flag any learner who thinks functions replace loops entirely.
Inclusion and homework
Provide the array template prefilled for learners who need scaffolding and allow oral function calls. Extend confident learners with two arrays and a function that returns an array element. Homework: write a second function that takes an array and returns the sum of its elements.