Exam 7: Basic Semantics

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

In C++,declarations that bind all potential attributes are called ____.

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

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:
Verified

True

____ are any storable quantities,such as integers.

Free
(Multiple Choice)
4.7/5
(34)
Correct Answer:
Verified

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)

____ are generally bound at load time.

(Multiple Choice)
4.9/5
(39)

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)

Static constants are always computed at load time.

(True/False)
4.7/5
(39)

Dynamic allocation places variables ____.

(Multiple Choice)
4.8/5
(37)

Declarations in surrounding blocks are called nonlocal declarations.

(True/False)
4.7/5
(37)

The scope of a binding is ____.

(Multiple Choice)
4.9/5
(33)

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)

Each call to a method is referred to as a(n)____.

(Multiple Choice)
4.9/5
(34)

Lexical scoping rules are sometimes called dynamic scoping.

(True/False)
4.9/5
(34)

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)

Java requires manual deallocation of objects.

(True/False)
4.8/5
(31)
Showing 1 - 20 of 50
close modal

Filters

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