Computer Science for IGCSE & O level - Programming (Section 2 - No. 35)

Which of the following is the primary purpose of a library routine?
To allow for modularity and reusability of code.
To declare global variables.
To create a user interface.
To handle user input.

Explanation

Library routines (or functions) provide pre-written code modules that perform commonly needed tasks, promoting code reuse.

Comments (0)

Advertisement