ICD3 - Scopes and Symbol Tables Flashcards

1
Q

Each named object will have ANSWER, where the name is defined as a synonym for the object.

A

a declaration

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

The technical term for connecting a name with an object is called ANSWER.

A

binding

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

The portion of the program where the name is visible is called its ANSWER.

A

scope

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

When the structure of the syntax tree is used to determine which object corresponds to a name, this is called ANSWER.

A

static scoping

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

A compiler typically keeps track of which names are associated with which objects by using ANSWER.

A

a symbol table

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

ANSWER data structures have the property that no operation on the structure will destroy or modify it.

A

immutable

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

ANSWER data structures have the property that there are operations on the structure can destroy or modify it.

A

mutable

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

Since a compiler may have to look up what object is associated with a name many times, it is typical to use ANSWER to avoid linear search times.

A

hash tables

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