Function (programming)
Computer Science
Function is a discrete, named sequence of program instructions that executes a specific set of operations on provided inputs to produce a deterministic output or a defined state change.
Category
Subroutine
Identity
A discrete, named sequence of program instructions
Mechanism
executing a defined set of operations on provided inputs to return a specific output or perform a side effect
Resolved
The standard definition is too broad, as it could describe a script, a loop, or a procedure without distinguishing the functional requirement of input-output mapping.
Usually defined as: A block of code that performs a specific task.
Open “Function (programming)” in the WiseDefine app Define any other academic termPoor definition—or no definition—teaching is the silent killer.
And WiseDefine eliminates that.
Related terms in Computer Science and Technology
- Interpreter · Computer Science
- Variable (programming) · Computer Science
- Data type · Computer Science
- Object-oriented programming · Computer Science
- Class (programming) · Computer Science
- Object (programming) · Computer Science