Fichas
Subroutines
Fichas del conjunto (8)
- 1What is a Subroutine?a named block in code to carry out a specific task.
- 2What is a functionA subroutine which returns a value
- 3What are built in functions and libraries?Functions which perform tasks such as print()
programming languages also come complete with libraries or pre defined subroutines. the module library has to be imported in the program - 4What is a parameterparameter: identifies data being passed into a subroutine
- 5What is an argumentargument: an item of data being passed into a subroutine
- 6What is a Global Variablea variable that is available anywhere in the program.
- 7What is a local variablea variable that is only available in specified subroutines and functions.
- 8Name advantages of local variables?-The subroutines will be independent of a
particular program and can be reused in
different programs
-There is no chance of accidentally changing a variable in the main program that is used in a subroutine or vice versa.
-it keeps your subroutines self-contained.
Información
- Descripción
- A level (Unit1) Computing Fichas sobre Subroutines, creado por Thomas Barker el 23/01/2018.
- Creado por
- Thomas Barker
- Visitas
- 0
- Valoración
Más sobre Functions and Procedures