Subroutines

Description

Be familiar with subroutines and their uses. Know that a subroutine is a named ‘out of line’ block of code that may be executed (called) by simply writing its name in a program statement. Be able to describe the use of parameters to pass data within programs. Be able to use subroutines with interfaces Be able to use subroutines that return values to the calling routine. Know that subroutines may declare their own variables, called local variables.
Daniel Smillie
Flashcards by Daniel Smillie, updated more than 1 year ago
Daniel Smillie
Created by Daniel Smillie about 6 years ago
7
0

Resource summary

Question Answer
Subroutine A block of named code designed to carry out a specific task.
Function A subroutine that returns a value.
Built-in Function and Libraries Programming language come with many built-in functions which perform common tasks. E.g. sqrt, len, asc, chr, round
Parameter Identifies data being passed into a subroutine
Argument An item of data being passed into a subroutine
Local Variable A variable that is only available in specific subroutines and functions
Global Variable A variable that is available anywhere in the program
Show full summary Hide full summary

Similar

A level Computing Quiz
Zacchaeus Snape
Types and Components of Computer Systems
Jess Peason
Input Devices
Jess Peason
Output Devices
Jess Peason
Computing
Kwame Oteng-Adusei
Pack of playing cards answer
Karl Taylor
Code Challenge Flow Chart
Charlotte Hilton
Iteration
Daniel Smillie
File Handling & Exceptions
Daniel Smillie
Selection
Daniel Smillie