New Page 1

   
May we store cookies
on your computer?

Key Terms

Term Definition
Statement a single instruction or step within a program. Usually each is written in one line of code, but not always.
Subroutine A set of instructions performing a specific task, but which is not a complete program. Must be incorporated into a program and called in order to be used. 
Procedure A subroutine that when called by it identifier executes its statements and returns control to the main program. Does not return a single value to the main code and can be called without assignment or comparison.
Function A subroutine that returns a single value when called. Is given a data type when defined and whatever value is assigned to the subroutines identifier is returned to the main code.
Parameter A data item that is supplied when a subroutine (function or procedure) is called. Generally enclosed in brackets after the subroutine identifier. Called as part of an expression.
Sequence A control structure in which a set of instructions is each executed once, in the order in which they are written.
Selection A control structure where a group of statements maybe executed or ignored depending on the outcome of a condition or the data being processed at the time. Examples include IF and Case.
Iteration The process of repeating a statements in a loop until a required answer is achieved or the fixed number of loops has occurred.
Recursion A subroutine that includes a call to itself. The subroutine will continue calling itself until a stopping condition is met. Includes condition controlled (Repeat and While) and count controlled (For and Do) loops.


©1997-2012 Hartismere School,  Castleton Way, Eye, Suffolk IP23 7BL :: 01379 870315  [Disclaimer | Privacy | Stats]