SHSubjectHub

1D arrays

OCR J2772.2 L7GCSELesson 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.

  • 10 questions
  • 33 marks
  • about 40 minutes
  • marked instantly

Question types: short answer, multiple choice, true or false.

Try one from this worksheet

An OCR Exam Reference Language program declares an array with array names[5]. Identify the index of the last item in names.

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

About this resource

OCR GCSE Computer Science (J277) 2.2.3 Additional programming techniques: the use of arrays when solving problems, one-dimensional (1D) arrays, as fixed-length structures. Python lesson 7 of 10 in 2.2 Programming fundamentals, with OCR Exam Reference Language beside the Python: a spot-the-mistake…

18 slides.

Lesson outline

  1. Do Now: spot the 3 mistakes
  2. Do Now: answers
  3. Key idea: An array: one name, many values
  4. Key idea: Loop through every item
  5. Quick check: total it
  6. Key idea: Largest, smallest and count
  7. Key idea: Fill from input, then search
  8. Set 1: index and change
  9. Set 2: loop through it
  10. Exam question E1: use an array in ERL
  11. Model answer E1
  12. Exam question E2: two logic errors
Unit bundle2.2 Programming fundamentals · Python and OCR ERL lessons
Part of: 2.2 Programming fundamentals · Python and OCR ERL lessons: the whole unitEvery resource in the unit in one zip.

More from 2.2 Programming fundamentals · Python and OCR ERL lessons