Chapter 4 Flashcards
1
Q
Block of code
A
The code between a pair of curly braces
2
Q
Outer block
A
contains another block
3
Q
Inner block
A
is contained within another block
4
Q
Nested
A
Describes the state of an inner block
5
Q
Scope
A
The part of the program in which a variable exists and can be accessed using its unqualified name
6
Q
Comes into scope
A
Describes what happens to a variable when it becomes usable
7
Q
Goes out of scope
A
Describes what happens to a variable when it ceases to exist at the end of the block in which it is declared
8
Q
Scope level
A
Part of a program on which a variable exists and can be accessed using its unqualified name; In Java, this is the variable’s block