12: Variable Attributes Flashcards

(16 cards)

1
Q

Identifiers for variables.

A

Name

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

The memory location associated with the variable at current time.

A

Address

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

Does a global scope of variable has the same address with local scope variable of the same name?

A

No

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

When recursion is employed, can the same local variable have multiple addresses during execution?

A

Yes

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

This happens when two or more identifiers refer to the same address.

A

Aliases

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

If either name/alias writes to that address, can the others “sees” the change?

A

Yes

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

This attribute the set of values, operations that are legal, and sometimes the representation size/format of a variable.

A

Type

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

This is simply the bits stored in memory cells.

A

Value

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

This refers to the location you need to write.

A

L-Value

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

This refers to the data contents you read.

A

R-Value

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

This is the time during which the variable is bound to a specific memory location.

A

Lifetime

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

The region of a program’s source code where a particular variable (or name) is visible and can be accessed.

A

Scope

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

Association between an attribute and entity

A

Bindings

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

When an association is fixed.

A

Binding time

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

Binding that occurs before run time and remain unchanged throughout the program execution.

A

Static Binding

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

Binding that occurs during run time and can change in the course of the program execution.

A

Dynamic Binding