CompTIA ITF+ (FC0-U61) — Question 6
A function is BEST used for enabling programs to:
Answer options
- A. hold a list of numbers.
- B. be divided into reusable components.
- C. define needed constant values.
- D. define variables to hold different values.
Correct answer: B
Explanation
The correct answer is B, as functions allow for code to be broken down into smaller, reusable components, promoting modularity and reducing redundancy. Options A, C, and D describe different concepts related to data storage or definitions but do not capture the main purpose of functions in programming.