Flashcards
Data structures in procedural programming
Flashcards do conjunto (20)
- 1StatementSingle executable line of code.
- 2SubroutineBlock of code that performs a specific task; called from within the main code.
- 3ProcedureSubroutine that a has parameter values passed through it; may return one or many values.
- 4FunctionA procedure that will return one value.
- 5Parameter (or argument)A variable that is given a value or an address, then passed through a subroutine where it may be given a different identifier. Can be passed on to a stack.
- 6How parameters are passed through a procedurePassed by reference or by value. Can be used as a local variable.
- 7Local variableDeclared within a subroutine, this variable can only function within that subroutine.
- 8Global variableDeclared either at start of the code or in a separate class, this variable can be used for the whole code.
- 9VariablePiece of code given an identifier. It represents a value held in a memory location for the program. This value can be changed in the code.
- 10ConstantA variable with a fixed value.
- 11SequenceStatements that are executed in order in which they appear.
- 12SelectionThe execution of a statements or block of statements depending on a particular condition.
- 132 types of selectionIF-ELSE statements
SELECT-CASE statements - 14SELECT-CASE statementsValue of variable/ expression used to decide which of a number of statement blocks are executed. Default option is used with a sensible response.
- 15Iteration (or loop)Repeated execution of a statement block for a set number of times
- 16Types of iterationFOR loop
WHILE loop
DO UNTIL loop - 17FOR loopFixed number of iterations according to start and end values of variable set at beginning.
- 18WHILE loopCondition tested before each iteration. Statements in loop will be executed if true.
- 19NestingConstruct written within another, each construct must be completely contained in preceding construct. They are not allowed to overlap.
- 20RecursionWhen a function calls itself, original call halted until subsequent calls return, eventually reaching a stopping condition.
Informações
- Descrição
- A level Computing FlashCards sobre Data structures in procedural programming, criado por Joseph Stevens em 05-05-2015.
- Criado por
- Joseph Stevens
- Visualizações
- 9
- Tags
- Avaliação