Using subprograms (Edexcel 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 subprogram?
What is a subprogram?
A self-contained block of code
Where can subprograms be saved to use in other programs?
Where can subprograms be saved to use in other programs?
In a library
What is the key difference between built-in and library functions?
What is the key difference between built-in and library functions?
Library functions need importing
Which is an example of a built-in function?
Which is an example of a built-in function?
print()
Which function needs to be imported before use?
Which function needs to be imported before use?
random.randint()
What does abstraction mean in subprograms?
What does abstraction mean in subprograms?
Using without knowing how it works
Why is abstraction essential in large software?
Why is abstraction essential in large software?
It manages complexity
What makes subprograms more powerful through generalisation?
What makes subprograms more powerful through generalisation?
Parameter passing
Why is calculateArea(length, width) better than calculateArea5x3()?
Why is calculateArea(length, width) better than calculateArea5x3()?
It works with any rectangle
How do subprograms help with complex programs?
How do subprograms help with complex programs?
They split it into manageable chunks
What benefit comes from writing a subprogram once?
What benefit comes from writing a subprogram once?
It can be used many times
How do subprograms support teamwork?
How do subprograms support teamwork?
Different members work on different ones
