Exam 10: Control II - Procedures and Environments

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

The group of actions in a procedure is called the ____ of the procedure.

Free
(Multiple Choice)
4.9/5
(36)
Correct Answer:
Verified

D

Reference counting is a form of ____.

Free
(Multiple Choice)
4.8/5
(38)
Correct Answer:
Verified

B

A procedure communicates with its calling environment through ____.

Free
(Multiple Choice)
4.8/5
(44)
Correct Answer:
Verified

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)

Pass by reference is also known as copy-restore.

(True/False)
4.8/5
(33)

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)

Another name for activation record is stack record.

(True/False)
4.9/5
(40)

Pass by value-result is also known as copy-in,copy-out.

(True/False)
4.7/5
(39)

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)

The ____ determines the allocation of memory.

(Multiple Choice)
4.8/5
(34)
Showing 1 - 20 of 50
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)