SHSubjectHub

Iteration: count-controlled and condition-controlled loops

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

  • 12 questions
  • 41 marks
  • about 40 minutes
  • marked instantly

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

Try one from this worksheet

A loop in OCR Exam Reference Language has the body print(i) and ends with next i. Identify the first line that makes it output the numbers 1 to 10, and nothing else.

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.1 Programming fundamentals: iteration (count-controlled and condition-controlled loops). Python lesson 5 of 10 in 2.2 Programming fundamentals, with OCR Exam Reference Language beside the Python: a spot-the-mistakes Do Now, a short key idea, a 9-challenge ladd…

20 slides.

Lesson outline

  1. Do Now: spot the 3 mistakes
  2. Do Now: answers
  3. Key idea: Count-controlled loops: for
  4. Quick check: how many times?
  5. Key idea: Condition-controlled loops: while
  6. Quick check: zero passes
  7. Key idea: do ... until: always at least once
  8. Key idea: Totals, counts and nested loops
  9. Quick check: loops inside loops
  10. Set 1: count-controlled loops
  11. Set 2: totals and counts
  12. Set 3: condition-controlled loops
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