An array (Python list) where the data elements are organised in a row.
eg.
[8,7,4,3,1]
Back
Integer
Front
Data Type: a whole number Eg 1, 2, 3 etc
Back
Post-test loop
Front
The condition being tested is evaluated at the end of the loop
Back
Termination of condition
Front
there must be a statement inside the repeating section of codes hat allows the condition to become false
Back
Repetition structure
Front
defines the boundaries containing the repeating section of code and also controls whether the code will be executed or not
Back
Selection
Front
A condition determines whether code will be executed (Eg. IF or Case Select)
Back
String
Front
Data Type: used to represent text, a collection of characters (can include a mixture of letters & numbers) Eg 'fred', '123xyz'
Back
Data Type
Front
How data is stored in computers. Tells the computer how the data will be used. Eg. string, integer etc.
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
Procedure
Front
A sub-program that carries out a list of instructions. Different from a function, in that it does not return a value.
Back
Sequence
Front
Code will be executed in order.
Back
Real (or float)
Front
Data Type: numbers that have a decimal part Eg 3.14, 5.2, 100.0 etc
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
Condition
Front
Each repetition structure requires a condition that must be evaluated
Back
fixed-count loop
Front
A fixed number of iterations are executed
Back
Constant
Front
A value that cannot be altered during the running of the program.
Back
Iteration
Front
Code that is repeated. Eg. a loop (While, Do While, For)
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
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
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
Boolean: OR
Front
A Boolean operator where equivalence to either condition results in TRUE
Eg.
IF x==5 OR x==6:
print (x)
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
Casting
Front
The process of changing from one data type to another
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
Function
Front
A sub program that takes parameters and RETURNS a value.
Back
Switch Case
Front
A type of selection statement (an alternative to IF)
Back
Variable
Front
A location in memory whose value may change during the running of the program.
Back
Boolean
Front
Data Type: can only take one of two values, usually TRUE or FALSE (can be yes/no)
Back
Initialization of condition
Front
ensures correct loop execution the firtst time the condition is evaluated
Back
Pseudocode
Front
A set of instructions in the style of a programming language, but using plain English.
Back
In a pretest loop, the continuation condition is tested at the ____ through the loop.