Programming Concepts

Function is best defined as which of the following?

Correct answer

B. A reusable block of code that performs a specific task and can be called with different inputs.

Explanation

Function refers to a reusable block of code that performs a specific task and can be called with different inputs.