Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 4 - No. 23)

What is a 'subroutine' or 'procedure' in programming?
A complete program.
A small, self-contained block of code that performs a specific task.
A variable declaration.
A data structure for storing related data.

Explanation

A subroutine is a reusable block of code designed to perform a specific task.

Comments (0)

Advertisement