Flashcards
Subroutines
Flashcards do 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.
Informações
- Descrição
- A level Computing (Unit1) FlashCards sobre Subroutines, criado por Thomas Barker em 23-01-2018.
- Criado por
- Thomas Barker
- Visualizações
- 0
- Avaliação
Mais sobre Functions and Procedures