Examplary
Start for free
Oak ComputingTest · Computing

Procedures in programs

The starter and exit quiz of the lesson “Procedures in programs”, from the unit “Programming: subroutines” (Year 10 Computing) by Oak National Academy.

Free to use. Edit it, share it and hand it out to your students.

Oak National Academy

11 questions

  1. What is the term used for the name of a subprogram?
  2. In this code:def num_walks(total_dogs, total_days):total_dogs and total_days are:
  3. A ___ chart is created to decide the hierarchy for a program.
  4. A subprogram interface is made up of which items?
  5. Select the statement that is true.
  6. What code is missing from the program? ___ multiply_two_numbers(number1, number2) answer = number1 * number2 return answerresult = multiply_two_numbers(5,5)print(result)
  7. Match the term to the definition.
  8. ___ are used in subprogram to allow values to be passed into them.
  9. ___ are the values held in the brackets of a subprogram call.
  10. This code is an example of:def calculate(a, b): answer = a + b return answeranswer = calculate(5, 10)
  11. What keyword is used to define a subprogram in Python?

License: OGL

Procedures in programs · Examplary