SHSubjectHub

Arrays & Records

OCR J2772.2dGCSELesson packSubscription
Also online

This worksheet marks itself

Set it as homework or classwork and every answer is marked as pupils go, with feedback on what they got wrong. The scores go straight into your mark book, so you can see who needs help before the next lesson.

  • 8 questions
  • 24 marks
  • about 18 minutes
  • marked instantly

Question types: multi-part, multiple choice, true or false, short answer, matching.

Try one from this worksheet

An array names contains ["Alice", "Bob", "Charlie", "Diana"]. What is the value of names[2]?

Pick an answer: it's marked straight away, just as your pupils would see it.

About this resource

Understand 1D and 2D arrays, how to declare and access elements, loop through arrays, and use records to store structured data.

16 slides.

Lesson outline

  1. What Is an Array?
  2. Arrays in Memory
  3. 1D Arrays - Declaring and Accessing
  4. Array Index Check
  5. Looping Through Arrays
  6. Code Demo: Array Processing
  7. Coding Challenge: Shopping List Manager
  8. Task: Array Tracing
  9. 2D Arrays
  10. Task: 2D Array Practice
  11. Records
  12. Records in Python
Unit bundle2.2 Programming Fundamentals
Part of: 2.2 Programming Fundamentals: the whole unitEvery resource in the unit in one zip.

More from 2.2 Programming Fundamentals