Computer Science for IGCSE & O level - Programming (Section 3 - No. 14)
Which statement most accurately describes the difference between a procedure and a function?
Procedures can't return values; functions always return values.
Functions can't have parameters; procedures can.
Procedures always return values; functions can't.
Procedures are used for input; functions are used for output.
Explanation
A key distinction is that functions are designed to return a value, while procedures may or may not return values.
Comments (0)
