Exam-style question
Try this first
What is a subroutine?.
- A.A named out-of-line block of code that can be called
- B.A variable used to store a single value
- C.A comment explaining how a program works
- D.A hardware component inside a computer
Model answer
What a good answer should say
- A named out-of-line block of code that can be called
Explanation
Why this works
A subroutine is a named out-of-line block of code that may be executed by calling its name in a program statement.
Common mistake
No common mistake is linked to this question yet.
