Passing Parameters (AQA GCSE Computer Science): Quizzes

📚Quizzes
Passing Parameters
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?

A separate block of code with its own name

What is the key advantage of using subroutines?

Code reusability

What are parameters?

Values passed to a subroutine

What do parameters allow you to do?

Customize subroutine behavior each time

When defining or calling subroutines, what must you always include?

Brackets ()

If you call timestable(8, 10), what does tt become inside the subroutine?

8

Do parameter names in a subroutine have to match the variable names passed in?

No, they don't have to match

How can parameters be used inside a subroutine?

In calculations and outputs

Which benefit means one subroutine can handle many different situations?

Flexibility

What is a benefit of easier maintenance with parameters?

Only update one subroutine if needed

Without parameters, what does a subroutine do?

Exactly the same thing every time

In timestable(9, 12), what range would the 9 times table print?

9×19 \times 1 to 9×129 \times 12

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

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