Podcast
Questions and Answers
Which category of variables are nameless (abstract) memory cells allocated and deallocated by explicit run time instructions written by the programmer?
Which category of variables are nameless (abstract) memory cells allocated and deallocated by explicit run time instructions written by the programmer?
- Static variables
- Stack-dynamic variables
- Explicit heap-dynamic variables (correct)
- Implicit heap-dynamic variables
What is the range of statements in which a variable is visible known as?
What is the range of statements in which a variable is visible known as?
- Elaboration
- Scope (correct)
- Binding
- Allocation
In which scoping method are names bound to nonlocal variables based on spatial relationships?
In which scoping method are names bound to nonlocal variables based on spatial relationships?
- Implicit scoping
- Static scoping (correct)
- Dynamic scoping
- Spatial scoping
Which category of variables are bound to heap storage only when they are assigned values?
Which category of variables are bound to heap storage only when they are assigned values?
What is the process that involves storage allocation and binding indicated by a declaration statement?
What is the process that involves storage allocation and binding indicated by a declaration statement?
Which type of variable remains bound to memory cells from program execution start to end?
Which type of variable remains bound to memory cells from program execution start to end?
What is the range of statements in which a variable can be referenced in known as?
What is the range of statements in which a variable can be referenced in known as?
'Explicit heap-dynamic' and 'implicit heap-dynamic' variables differ in their:
'Explicit heap-dynamic' and 'implicit heap-dynamic' variables differ in their:
Stack-dynamic variables have their storage bindings created after program execution begins.
Stack-dynamic variables have their storage bindings created after program execution begins.
Explicit heap-dynamic variables are bound to memory cells before program execution starts.
Explicit heap-dynamic variables are bound to memory cells before program execution starts.
Implicit heap-dynamic variable attributes are bound every time they are assigned values.
Implicit heap-dynamic variable attributes are bound every time they are assigned values.
Static scoping is the same as dynamic scoping.
Static scoping is the same as dynamic scoping.
The scope of a variable is the same as the range of statements in which the variable is visible.
The scope of a variable is the same as the range of statements in which the variable is visible.
Dynamic scoping is based on spatial relationships between subprograms.
Dynamic scoping is based on spatial relationships between subprograms.
Stack-dynamic variables are always statically bound.
Stack-dynamic variables are always statically bound.
Explicit heap-dynamic variables have names.
Explicit heap-dynamic variables have names.
Implicit heap-dynamic variables get bound to heap storage regardless of value assignment.
Implicit heap-dynamic variables get bound to heap storage regardless of value assignment.
Static scoping binds names to nonlocal variables based on calling sequence of subprograms.
Static scoping binds names to nonlocal variables based on calling sequence of subprograms.
Flashcards are hidden until you start studying