Exam 7: Basic Semantics
Exam 1: Introduction50 Questions
Exam 2: Language Design Criteria50 Questions
Exam 3: Functional Programming50 Questions
Exam 4: Logic Programming50 Questions
Exam 5: Object-Oriented Programming50 Questions
Exam 6: Syntax50 Questions
Exam 7: Basic Semantics50 Questions
Exam 8: Data Types50 Questions
Exam 9: Control I - Expressions and Statements50 Questions
Exam 10: Control II - Procedures and Environments50 Questions
Exam 11: Abstract Data Types and Modules50 Questions
Exam 12: Formal Semantics50 Questions
Exam 13: Parallel Programming51 Questions
Select questions type
In C++,declarations that bind all potential attributes are called ____.
Free
(Multiple Choice)
4.8/5
(35)
Correct Answer:
B
Names can be reused within nested blocks by associating each declaration with a level number and an offset.
Free
(True/False)
4.8/5
(40)
Correct Answer:
True
____ are any storable quantities,such as integers.
Free
(Multiple Choice)
4.7/5
(34)
Correct Answer:
B
When a nonlocal name is used in an expression,the declaration that applies to that name cannot be determined until execution time under dynamic scoping.
(True/False)
4.9/5
(43)
Each function call generates a region of allocated memory associated with the function; this is called an activation record.
(True/False)
4.8/5
(39)
The meaning of a name cannot be determined by the attributes associated with it.
(True/False)
4.8/5
(36)
In a block-structured language with heap allocation,there are three kinds of allocation: static (for global variables),automatic (for local variables),and dynamic (for heap allocation).
(True/False)
4.9/5
(33)
If an operator can be used to perform more than one operation,it is said to be shadowed.
(True/False)
4.8/5
(25)
Declarations in surrounding blocks are called nonlocal declarations.
(True/False)
4.7/5
(37)
The body of an externally defined function will not be bound until ____.
(Multiple Choice)
4.9/5
(34)
The bindings of names to storage locations is called the ____.
(Multiple Choice)
4.9/5
(28)
The declaration before use scoping rule in C allows any declaration to be used as long as it is declared within the current block.
(True/False)
4.8/5
(35)
In object-oriented languages such as Java and Smalltalk,the ____ is the only declaration that does not itself need to be inside another class declaration.
(Multiple Choice)
4.9/5
(38)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)