ExamPlay Dark Logo
Đăng nhập

Computer Science for IGCSE & O level - Programming (Section 5 - No. 15)

Which of the following statements about functions and procedures is true?
Functions always return a value; procedures never return a value.
Procedures always return a value; functions never return a value.
Functions can return a value, and procedures can also return a value, but not always.
Functions and procedures do the same thing, but are named differently depending on the programming language.

Giải thích

Functions primarily return values, while procedures may or may not.

Bình luận (0)

Đăng nhập để bình luận
Quảng cáo
BrainBehindX Inc Logo
©2026; Được cung cấp bởi BrainBehindX Inc