SHSubjectHub

Subprograms, scope and random numbers

OCR J2772.2 L10GCSELesson 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
  • 41 marks
  • about 40 minutes
  • marked instantly

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

Try one from this worksheet

Identify the statement that describes a function.

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: sub programs (functions and procedures), local and global variables, passing arrays, and random number generation. Python lesson 10 of 10 in 2.2 Programming fundamentals, with OCR Exam Reference Language beside the Python:…

20 slides.

Lesson outline

  1. Do Now: spot the 3 mistakes
  2. Do Now: answers
  3. Key idea: Procedures and functions
  4. Key idea: Parameters, arguments and return
  5. Quick check: what does it return?
  6. Key idea: Passing an array to a function
  7. Key idea: Local and global variables
  8. Quick check: local or global?
  9. Key idea: Random numbers
  10. Set 1: procedures
  11. Set 2: functions
  12. Exam question E1: create a function
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