Subroutines that Return Values (AQA GCSE Computer Science): Quizzes

📚Quizzes
Subroutines that Return Values
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 the key difference between functions and procedures?

Functions return values, procedures don't

Which keyword is used in AQA pseudocode to send a value back from a function?

RETURN

What are variables created inside a function called?

Local variables

What does it mean when a variable has local scope?

It only exists inside that function

Can local variables be accessed from the main program?

No, they cannot be accessed

What happens to local variables when a function finishes running?

They disappear

What error occurs in Python when accessing a local variable from outside its function?

NameError

Why is local scope considered a good thing?

Prevents parts interfering with each other

What is modularisation in relation to functions?

Breaking program into smaller chunks

What does reusability of functions mean?

Using functions multiple times

How does using functions make maintenance easier?

Only need to update code in one place

What does 'clear interfaces' mean as a benefit of functions?

Clear inputs and outputs

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

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