SHSubjectHub

Subroutines, Parameters, Return Values & Scope

AQA 75174.1.10–4.1.14A-levelLesson 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
  • 36 marks
  • about 50 minutes
  • marked instantly

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

About this resource

AQA A-level Computer Science (7517) Paper 1, 4.1.1.10–4.1.1.14 — subroutines (procedures/functions), using parameters to pass data and build an interface, returning values, and contrasting local variables with global variables.

27 slides.

Lesson outline

  1. Do Now — Retrieval
  2. I-Do: What Is a Subroutine?
  3. Hinge Check — Subroutine Definition
  4. I-Do: The Advantages of Using Subroutines
  5. I-Do: Calling a Subroutine and Getting a Value Back
  6. The Call Stack
  7. Hinge Check — Advantages of Subroutines
  8. We-Do — Spot the Case for Decomposition
  9. I-Do: Parameters and the Interface
  10. I-Do: Arguments Flow Into Parameters
  11. Hinge Check — Parameter vs Argument
  12. I-Do: Worked Trace — Multiple Parameters
Unit bundlePaper 1
Part of: Paper 1: the whole unitEvery resource in the unit in one zip.

More from 4.1 Fundamentals of programming