Code that is repeated. Eg. a loop (While, Do While, For)
Back
Array
Front
A data structure where all of the data is stored and defined under one variable name.
In Python, we call this a 'list'
eg.
x = [4,6,3,9]
Back
Boolean
Front
Data Type: can only take one of two values, usually TRUE or FALSE (can be yes/no)
Back
Casting
Front
The process of changing from one data type to another
Back
Constant
Front
A value that cannot be altered during the running of the program.
Back
Selection
Front
A condition determines whether code will be executed (Eg. IF or Case Select)
Back
Boolean: AND
Front
Both conditions must be true in order for the condition to apply
eg:
IF x==5 AND y==6:
print ('launch')
Back
Character
Front
Data Type: a single letter or symbol Eg. 'A', '5', '%' etc.
Back
Sequence
Front
Code will be executed in order.
Back
Loop: Do While
Front
The loop starts at DO and repeats until the condition is FALSE.
A DO loop always executes.
DO
value=value+1
WHILE value < 10
Back
Loop: Repeat
Front
A kind of iteration. In Python a repeat loop is created using the 'For' command eg: For i in range(1,6): will execute an instruction 5 times
Back
Real (or float)
Front
Data Type: numbers that have a decimal part Eg 3.14, 5.2, 100.0 etc
Back
Variable
Front
A location in memory whose value may change during the running of the program.
Back
Two Dimensional Array
Front
A two-dimensional array is similar to a one-dimensional array, but it can be visualised as a grid (or table) with rows and columns.
Back
Pseudocode
Front
A set of instructions in the style of a programming language, but using plain English.
Back
Switch Case
Front
A type of selection statement (an alternative to IF)
Back
Boolean: OR
Front
A Boolean operator where equivalence to either condition results in TRUE
Eg.
IF x==5 OR x==6:
print (x)
Back
One Dimensional Array
Front
An array (Python list) where the data elements are organised in a row.
eg.
[8,7,4,3,1]
Back
Function
Front
A sub program that takes parameters and RETURNS a value.
Back
String
Front
Data Type: used to represent text, a collection of characters (can include a mixture of letters & numbers) Eg 'fred', '123xyz'
Back
Integer
Front
Data Type: a whole number Eg 1, 2, 3 etc
Back
Data Type
Front
How data is stored in computers. Tells the computer how the data will be used. Eg. string, integer etc.
Back
Boolean: NOT
Front
A Boolean operator used to compare one condition to another and return a value of TRUE or FALSE.
Eg.
IF NOT >=15:
print ('Entrance Denied')
Back
Loop: While
Front
The loop starts by checking that the WHILE condition is TRUE and will execute until it is FALSE.
A WHILE loop may not execute. Eg.
total = 1
WHILE total < 10
total = total+1
Back
Procedure
Front
A sub-program that carries out a list of instructions. Different from a function, in that it does not return a value.