140k views
1 vote
Select the correct answer.

Which unit of program code takes inputs, performs operations on these inputs, and returns the outputs?
O A. statement
OB. variable
ОС.
constant
OD. function
Reset
Next

User Eric Boehs
by
7.2k points

1 Answer

12 votes

Answer:

The correct answer is: Option OD: function

Step-by-step explanation:

Many programming languages use functions to make the coding simple and easy to understand. A function is like a small unit that takes input in the form of arguments or parameters, does the processing on the input and returns the output.

Hence,

The correct answer is: Option OD: function

User Alex Coleman
by
7.8k points