x

Functions and procedures

Functions and procedures

A subroutine is a named block of code that you can call from somewhere else in the program. Subroutines support decomposition because a large task is split into smaller parts that are easier to test, reuse and fix.

Subroutines, arrays, file handling and comments Lesson

  1. A Level
  2. /Computer Science
  3. /Subroutines, arrays, file handling and comments

Step-by-step lessons covering OCR A Level Computer Science Subroutines, arrays, file handling and comments for A Level Computer Science. Each lesson works through exam-style questions.

Lessons