Exam 10: Control II - Procedures and Environments
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
The group of actions in a procedure is called the ____ of the procedure.
Free
(Multiple Choice)
4.9/5
(36)
Correct Answer:
D
A procedure communicates with its calling environment through ____.
Free
(Multiple Choice)
4.8/5
(44)
Correct Answer:
A
The local variable ____ stores the distance from the environment pointer.
(Multiple Choice)
4.9/5
(35)
Pass by name can be described as an advanced inlining process for procedures.
(True/False)
4.8/5
(40)
Procedures were first introduced when memory was scarce,as a way of splitting a program into small,separately compiled pieces.
(True/False)
4.8/5
(34)
When parameters are passed by value,the arguments are expressions that are evaluated at the time of the call,with the arguments' values becoming the values of the parameters during the execution of the procedure.
(True/False)
4.7/5
(51)
A procedure is a mechanism for abstracting a group of actions or computations.
(True/False)
4.9/5
(42)
The process of joining a block of free memory with immediately adjacent blocks to form a larger contiguous block of free memory is called ____.
(Multiple Choice)
4.7/5
(35)
The pointer to the previous activation record is the ____ link.
(Multiple Choice)
4.9/5
(34)
Historically,the interpretation of pass by name arguments as functions to be evaluated was expressed by referring to them as ____.
(Multiple Choice)
4.8/5
(41)
An activation of a block cannot communicate with the rest of the program.
(True/False)
4.8/5
(41)
A call to a procedure transfers control to the beginning of the body of the called procedure.
(True/False)
4.8/5
(31)
A ____ is a mechanism in programming for abstracting a group of actions or computations.
(Multiple Choice)
4.9/5
(50)
If the parameter becomes an alias for the argument,the parameter is passed ____.
(Multiple Choice)
4.8/5
(35)
A procedure communicates with the rest of the program through its parameters and through ____.
(Multiple Choice)
4.9/5
(35)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)