Using subprograms (Edexcel GCSE Computer Science): Quizzes

📚Quizzes
Using subprograms
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 subprogram?

A self-contained block of code

Where can subprograms be saved to use in other programs?

In a library

What is the key difference between built-in and library functions?

Library functions need importing

Which is an example of a built-in function?

print()

Which function needs to be imported before use?

random.randint()

What does abstraction mean in subprograms?

Using without knowing how it works

Why is abstraction essential in large software?

It manages complexity

What makes subprograms more powerful through generalisation?

Parameter passing

Why is calculateArea(length, width) better than calculateArea5x3()?

It works with any rectangle

How do subprograms help with complex programs?

They split it into manageable chunks

What benefit comes from writing a subprogram once?

It can be used many times

How do subprograms support teamwork?

Different members work on different ones

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

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