Exam-style question
Try this first
Which statement best describes an algorithm?.
- A.A set of computer components that stores data
- B.A sequence of steps that can be followed to complete a task and always terminates
- C.A programming language used to write software
- D.A collection of test data used to check a program
Model answer
What a good answer should say
- A sequence of steps that can be followed to complete a task and always terminates
Explanation
Why this works
An algorithm is a sequence of steps for completing a task, and it must always terminate rather than continuing indefinitely.
Common mistake
No common mistake is linked to this question yet.
