Exam 10: Compilers and Language Translation

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

____, the replacement of an arithmetic operation with a faster one is an example of a possible local optimization.

(Multiple Choice)
4.8/5
(34)

If a parser can convert the sequence of tokens into the goal symbol, then the sequence is an invalid statement.

(True/False)
4.9/5
(27)

In addition to building tokens, a scanner must classify them by type.

(True/False)
4.9/5
(35)

The goal symbol is the highest-level nonterminal.

(True/False)
4.7/5
(43)

In ____ optimization, the compiler looks at large segments of the program to decide how to improve performance.

(Multiple Choice)
4.9/5
(30)

If a parser cannot produce a parse tree for a high-level language statement, then that statement is not correctly formed.

(True/False)
4.9/5
(37)

The BNF language's syntax is specified as a series of grammars.

(True/False)
4.9/5
(36)

In the ____ phase, the compiler determines whether the machine language translation that it had produced can be made more efficient.

(Multiple Choice)
4.9/5
(31)

The single goal of compilers is correctness.

(True/False)
4.7/5
(36)

Performing local optimization is much more difficult than performing global optimization.

(True/False)
4.8/5
(37)
Showing 41 - 50 of 50
close modal

Filters

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