5
AssignmentMultiple Select

Functions, Procedures, Arguments and Parameters

Question 5 • FL-8207310-Digital Information Technology B

Which of the following are advantages of using subroutines? Choose all that apply.

Answer
A
Subroutines return multiple variables when used as a function.
B
Subroutines allow the programmer to save time.
C
Subroutines eliminate duplicate code.
D
Subroutines provide a fixed value that cannot be changed.

Explanation

Subroutines let programmers reuse a set of instructions instead of writing the same code repeatedly. This can save time and eliminate duplicate code, so the correct choices are “Subroutines allow the programmer to save time” and “Subroutines eliminate duplicate code.” A subroutine does not necessarily return multiple variables, and it does not provide a fixed value that cannot be changed.

AI-written and checked against the verified answer.