6
AssignmentMultiple Select

Variables and Data Types

Question 6 • Introduction to Information Technology - EL3701

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.