Which of the following is a type of subprogram? I. Functions II. Subroutines

2021

Which of the following is a type of subprogram? I. Functions II. Subroutines

  1. A.

    Only I

  2. B.

    Only II

  3. C.

    Both I and II

  4. D.

    Neither I nor II

Attempted by 486 students.

Show answer & explanation

Correct answer: C

In computer science, both functions and subroutines are standard classifications of subprograms used to modularize code effectively. Functions typically return values, while subroutines perform specific actions without necessarily returning a value, yet both fall under the broader category of subprograms in programming theory.

Explore the full course: Uppsc Polytechnic Lecturer 2025 Cs