Subroutines

Beschreibung

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
Karteikarten von Daniel Smillie, aktualisiert more than 1 year ago
Daniel Smillie
Erstellt von Daniel Smillie vor fast 7 Jahre
9
0

Zusammenfassung der Ressource

Frage Antworten
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
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

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