Subroutines (AQA GCSE Computer Science): Quizzes

📚Quizzes
Subroutines
Sign up to keep practising.Create a free account to play more quizzes and track your progress.

Practise the questions

12 questions from this quiz

Show

What is a subroutine?

Code defined once and used multiple times

Which keywords are needed to define a subroutine?

SUBROUTINE and ENDSUBROUTINE

What happens first when a subroutine is called?

The main program temporarily stops

What is a parameter in a subroutine?

A value passed into the subroutine

Where are parameters specified in a subroutine?

In brackets after the identifier name

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?

Control returns to the main program

How does code reusability benefit programmers?

Write code once, use it many times

How do you call a subroutine named 'timestable'?

timestable()

How do subroutines make maintenance easier?

Update code in one place only

How do subroutines help with teamwork?

Different programmers work on different ones

What makes subroutines flexible?

Using parameters with different values

Join 100,000+ GCSE students studying Quizzes with us.

Select your subjects, and get access to A+ resources today.