Question 4 • Introduction to Information Technology - EL3701
A function is a reusable block of code designed to perform a task, so choice A is correct. Some functions also return a value, which makes choice B another valid description. A value used within a code block is not what defines a function, and data passed into a parameter is an argument, not a function itself.
AI-written and checked against the verified answer.