AQA AS Computing: 2.2 Data Types Flashcards

1
Q

Global Variable

A

A variable declared at the beginning of a program and accessible from anywhere in the program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Local Variable

A

A variable declared in a program block (procedure/method) and accessible only from within that program block

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Scope of a variable

A

The blocks of code to which a variable is accessible (Local/Global)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Constant

A

A value that does not change throughout the program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Integer

A

A whole number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Real number

A

A number with a decimal point and a fractional part

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

String

A

A sequence of zero or more characters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Character

A

Any letter, numeral or symbol in the given character set, such as the ASCII character set

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Boolean data

A

Can be one of two possible values, True or False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Record

A

A data structure that groups a number of related variables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Field

A

A variable that is part of a record

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Enumerated type

A

An ordered set of values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Ordinal type

A

Defines an ordered set of values such as integer, character, Boolean and enumerated types; real numbers are NOT of ordinal type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Set

A

A collection of values of the same ordinal type with no associated order

How well did you know this?
1
Not at all
2
3
4
5
Perfectly