Chapter 4 Flashcards

1
Q

Block of code

A

The code between a pair of curly braces

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

Outer block

A

contains another block

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

Inner block

A

is contained within another block

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

Nested

A

Describes the state of an inner block

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

Scope

A

The part of the program in which a variable exists and can be accessed using its unqualified name

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

Comes into scope

A

Describes what happens to a variable when it becomes usable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

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