1
AssignmentMultiple Choice

Iteration

Question 1 • VA-Information Technology Fundamentals B

What is a function?

Answer
A
a way to compare variables
B
the result of executing a command
C
a block of code organized to perform a task
D
a way to reuse and recombine lines of code

Explanation

A function is a named block of code designed to perform a particular task. It can often be called again to reuse that code, but reuse is a benefit of functions rather than the best definition here; therefore, “a block of code organized to perform a task” is correct.

AI-written and checked against the verified answer.

Next