SHSubjectHub

2D arrays and records

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

  • 11 questions
  • 38 marks
  • about 40 minutes
  • marked instantly

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

Try one from this worksheet

The 2D array board is indexed [row, column]. Identify the OCR Exam Reference Language statement that stores "X" in row 2, column 0.

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, including 2D arrays, and the use of records to store data. Python lesson 8 of 10 in 2.2 Programming fundamentals, with OCR Exam Reference Language beside the Python: a spot-the-mistakes Do Now, a short ke…

17 slides.

Lesson outline

  1. Do Now: spot the 3 mistakes
  2. Do Now: answers
  3. Key idea: 2D arrays: rows and columns
  4. Quick check: row first
  5. Key idea: Nested loops: visit every value
  6. Key idea: Records: fields about one thing
  7. Set 1: read and write a 2D array
  8. Set 2: nested loops
  9. Set 3: records
  10. Exam question E1: declare and use a 2D array in ERL
  11. Model answer E1
  12. Exam question E2: read an ERL program
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