Exam-style question
Try this first
What is the main purpose of a software library?.
- A.To provide reusable code that programs can use for common tasks
- B.To replace the operating system when a computer starts
- C.To translate assembly language into machine code
- D.To remove all utility programs from a computer
Answer and explanation
Concise answer
To provide reusable code that programs can use for common tasks
Why this is correct
A library is a collection of pre-written, reusable code. Programs can use library routines instead of requiring the programmer to write every common operation from scratch.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
