Variable Tuple Flashcards
1
Q
Variable sextuple?
A
V = (N, A, V, T, L, S)
2
Q
N
A
Name
Name of variable: int numVal
3
Q
A
A
Address
Memory location of variable
4
Q
V
A
Value
What is stored at memory cell referred to by the address
5
Q
T
A
Type
Set of allowable values the value of a variable may draw from
6
Q
L
A
Lifetime
How long variable will exist for (in memory)
7
Q
S
A
Scope
Specific context that variable exists in