Scope Flashcards

1
Q

the idea in programming that some variables are accessible/inaccessible from other parts of the program.

A

Scope

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

are statements that exist within curly braces {}.

A

Blocks

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

refers to the context within which variables are accessible to every part of the program.

A

Global Scope

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

are variables that exist within global scope.

A

Global Variables

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

refers to the context within which variables that are accessible only within the block they are defined.

A

Block Scope

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

are variables that exist within block scope.

A

Local Variables

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

is the space in our code that contains globally scoped information.

A

Global namespace

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

is when too many variables exist in a namespace or variable names are reused.

A

Scope Pollution

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