Subroutines (AQA GCSE Computer Science): Quizzes
📚Quizzes
Practise the questions
12 questions from this quiz
ShowHide
Practise the questions
12 questions from this quiz
What is a subroutine?
What is a subroutine?
Code defined once and used multiple times
Which keywords are needed to define a subroutine?
Which keywords are needed to define a subroutine?
SUBROUTINE and ENDSUBROUTINE
What happens first when a subroutine is called?
What happens first when a subroutine is called?
The main program temporarily stops
What is a parameter in a subroutine?
What is a parameter in a subroutine?
A value passed into the subroutine
Where are parameters specified in a subroutine?
Where are parameters specified in a subroutine?
In brackets after the identifier name
What must you provide when calling a subroutine with parameters?
What must you provide when calling a subroutine with parameters?
Correct number of values in correct order
What happens after a subroutine completes its task?
What happens after a subroutine completes its task?
Control returns to the main program
How does code reusability benefit programmers?
How does code reusability benefit programmers?
Write code once, use it many times
How do you call a subroutine named 'timestable'?
How do you call a subroutine named 'timestable'?
timestable()
How do subroutines make maintenance easier?
How do subroutines make maintenance easier?
Update code in one place only
How do subroutines help with teamwork?
How do subroutines help with teamwork?
Different programmers work on different ones
What makes subroutines flexible?
What makes subroutines flexible?
Using parameters with different values
