Quiz

Quiz: Subroutines - Why We Use Them (Decomposition in Code)

AQA Computer Science

Ready to start this lesson?

Sign in to track your progress. 11 steps including 9 interactive questions.

Sign In to Start Learning
11 Steps9 Questions

Students also studied

Browse all

Steps in this lesson (11)

1
Text

Building on what you've learned, let's test your knowledge of subroutines and why we use them in decomposition!

2
Multiple ChoiceInteractive

What is a subroutine?

Start the lesson to answer this multiple choice question

3
Multi-SelectInteractive

Which of the following are benefits of using subroutines? (Select all that apply)

Start the lesson to answer this multi-select question

4
Fill in the BlankInteractive

Subroutines help with {{blank0}}, which is breaking a problem into smaller, manageable parts.

Start the lesson to answer this fill in the blank question

5
MatchingInteractive

Match the items on the left with their correct pairs on the right

Start the lesson to answer this matching question

6
Multiple ChoiceInteractive

Why is it important to use meaningful names for subroutines?

Start the lesson to answer this multiple choice question

7
Code CompletionInteractive

Match the items on the left with their correct pairs on the right

Start the lesson to answer this code completion question

8
Math EquationInteractive

Match the items on the left with their correct pairs on the right

Start the lesson to answer this math equation question

9
typedAnswer

Match the items on the left with their correct pairs on the right

10
Multiple ChoiceInteractive

What is the output of the following code?\n\ndef add_numbers(a, b):\n return a + b\n\nprint(add_numbers(2, 3))

Start the lesson to answer this multiple choice question

11
Fill in the BlankInteractive

A subroutine designed to return a value is called a {{blank0}}.

Start the lesson to answer this fill in the blank question

Genie

Want to Learn More?

Get personalised lessons, quizzes, and instant feedback from your AI tutor.

Explore More Topics