F452 Define Flashcards
Define what a serial file means.
The data is stored chronologically/in the order in which it is entered
New data always appended / added to the end of the file
You need to read each preceding item to reach an item you are searching for
Define what is meant by a random file
The address of each record is calculated from the key using a hash algorithm. The records may be contiguous.
Define what is meant by a function
A subroutine …
… which can return a single value
So it can be used within expressions (as a variable)
Define what is meant by a recursion.
When a function/procedure/subroutine calls itself
It has a stopping condition to tell it the recursion when to stop
Define what is meant by a sequence.
all instructions are executed…
… once
… in the order in which they appear
Define what is meant by selection.
a condition is used
to determine which of the statements (if any) will be executed
as a result some instructions may not be executed
Define what is meant by iteration.
a group of instructions is repeated
for a set number of times …
… or until a condition is met
Define what is meant by a validation.
Input data is checked by the computer
… against a set of rules
…to ensure that it is reasonable/sensible
Define what is meant by an array.
A data structure / set of data items
Of the same data type
Grouped under one identifier
Each item can be addressed using its index/subscript.
Define what is meant by a variable.
An identifier/name
Associated with a particular memory location.
Used to store (and manipulate) data
…which can be changed while the program is running.
Define what is meant by a constant.
When a constant is declared it must be given a value.
The value cannot be changed while the program is running.
Define what is meant by a parameter.
(A variable) which holds an item of data…
… which is supplied/passed to a subroutine/procedure/function
It is given an identifier when the subroutine is defined
It is substituted by an actual
Define what is meant by a local variable
A local variable is declared within a subprogram/ procedure/function/block of code
… and is only available within that section of code
… and is destroyed/deleted when the subprogram exits
A local variable can override a global variable (with the same name)
Define what is meant by a global variable.
A global variable is declared at the beginning of a program
… and is available throughout the program
Define what is meant by beta-testing.
In beta-testing…
… the nearly complete program…
… is given to a group of users to test/is tested under normal operating conditions/tested by people who were not involved in the production
The aim is to find any bugs which the programmer has overlooked