Flashcards
Subroutines
Cards in this deck (7)
- 1SubroutineA block of named code designed to carry out a specific task.
- 2FunctionA subroutine that returns a value.
- 3Built-in Function and LibrariesProgramming language come with many built-in functions which perform common tasks.
E.g. sqrt, len, asc, chr, round - 4ParameterIdentifies data being passed into a subroutine
- 5ArgumentAn item of data being passed into a subroutine
- 6Local VariableA variable that is only available in specific subroutines and functions
- 7Global VariableA variable that is available anywhere in the program
Information
- 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.
- Created by
- Daniel Smillie
- Views
- 13
- Tags
- Rating