147k views
1 vote
Which unit of program code takes Inputs, performs operations on these inputs, and returns the outputs?

statement

variable

constant

function

2 Answers

3 votes

Answer:

A function :D

Explanation:

User Svetoslav Petkov
by
5.8k points
4 votes

Answer:

Function.

Explanation:

A function can be defined as a program that takes inputs, operate them according to its defintion and then gives outputs that can be seen as the result of this process.

Therefore, the right answer here is function by definition.

User Allen Wong
by
6.2k points