AQA AS Computing: 2.2 Data Types Flashcards
Global Variable
A variable declared at the beginning of a program and accessible from anywhere in the program
Local Variable
A variable declared in a program block (procedure/method) and accessible only from within that program block
Scope of a variable
The blocks of code to which a variable is accessible (Local/Global)
Constant
A value that does not change throughout the program
Integer
A whole number
Real number
A number with a decimal point and a fractional part
String
A sequence of zero or more characters
Character
Any letter, numeral or symbol in the given character set, such as the ASCII character set
Boolean data
Can be one of two possible values, True or False
Record
A data structure that groups a number of related variables
Field
A variable that is part of a record
Enumerated type
An ordered set of values
Ordinal type
Defines an ordered set of values such as integer, character, Boolean and enumerated types; real numbers are NOT of ordinal type
Set
A collection of values of the same ordinal type with no associated order