Week 3Second Term

BASIC One-Dimensional Arrays: Concepts

Print lesson pack
On this page9 sections
  1. 01Lesson objectives
  2. 02Key vocabulary
  3. 03Common misconceptions
  4. 04Teacher activities
  5. 05Student activities
  6. 06Practical / learning evidence
  7. 07Resources and preparation
  8. 08Assessment for learning
  9. 09Inclusion and homework

Lesson objectives

By the end of the week, learners should be able to:

  1. Define a one-dimensional array and state its indexing rule.
  2. Name three use cases for arrays such as storing scores.
  3. Declare an array of ten elements and index correctly.
  4. Explain why arrays help organise repeated data.
  5. Trace an indexed access returning the correct value.

Key vocabulary

  • Array: a sequence stored in consecutive memory slots.
  • One-dimensional array: an array storing values along one axis.
  • Index: the position number of an element in the array.
  • Indexing rule: the convention assigning position numbers to elements.
  • Repeated data: values occurring multiple times in a task.
  • Consecutive slots: memory positions stored contiguously.
  • Declaration: stating the size and type of an array explicitly.
  • Access: retrieving a stored element by its index.

Common misconceptions

  • "Arrays store text separately." Arrays store homogeneous values; text often sits in a string type separately.
  • "Index starts at one always." Zero-based indexing is common but some languages start elsewhere.
  • "An array stores unrelated rows." Related rows belong together because of shared field types.

Teacher activities

  1. Starter: show ten number cards and ask where they would store them.
  2. Define an array and explain indexing by showing a zero-based declaration.
  3. Name three use cases such as storing exam scores or inventory.
  4. Demonstrate declaring an array of ten elements step by step.
  5. Explain why arrays help organise repeated data efficiently.
  6. Close with the index-access task and exit question.

Student activities

  1. Answer the starter and identify the array as the right storage.
  2. Define an array in their own words and name the indexing convention.
  3. Name three use cases for arrays in their own words.
  4. Declare an array of ten elements and index correctly.
  5. Trace an indexed access and write the returned value.
  6. Answer the exit question comparing arrays with separate variables in one sentence.

Practical / learning evidence

A declared array worksheet with indexing exercises, a three-use-case chart and an index-access trace. 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 size and indexing. Mark the use cases for genuine relevance. Check the index-access trace for correct retrieval. Flag any learner who thinks arrays store text only.

Inclusion and homework

Provide the array template predeclared for size and allow oral completion of indexing. Extend confident learners with two arrays and a second use case homework. Homework: declare two arrays of different sizes and compare memory usage in one paragraph.