Exam 11: Compilers and Language Translation

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

The righthand side of a BNF rule is the name of a single grammatical category.

(True/False)
4.7/5
(29)

If a parser can convert the sequence of input tokens into the goal symbol, then that sequence of tokens is a syntactically ____________________ statement of the language.

(Short Answer)
4.9/5
(36)

Building two parse trees implies that the parser has demonstrated correctness in two different ways. _________________________

(True/False)
4.7/5
(34)

The code a compiler produces should be reasonably efficient and concise.

(True/False)
4.9/5
(32)

The collection of all statements that can be successfully parsed is called the ____ defined by a grammar.

(Multiple Choice)
4.9/5
(36)

In BNF, the syntax of a language is specified as a series of grammars. _________________________

(True/False)
4.8/5
(38)

____ is where the compiler polishes and fine-tunes the translation so that it runs a little faster or occupies a little less memory.

(Multiple Choice)
4.9/5
(46)

Regardless of which programming language is being analyzed, every scanner performs virtually the same set of operations. What are they?

(Essay)
4.9/5
(39)

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

(Multiple Choice)
4.9/5
(35)

A high-level language program is called a(n) ____ program.

(Multiple Choice)
4.9/5
(38)

If a parser is analyzing a statement in a language and it sees exactly the same sequence of objects that appears on the right-hand side of a BNF rule, what is it allowed to do?

(Essay)
4.7/5
(42)

Following ____, the compiler makes a second pass over the parse tree to produce the translated code.

(Multiple Choice)
4.8/5
(33)

____ begins at the productions in the tree that are nearest to the original input tokens.

(Multiple Choice)
4.9/5
(36)

High-level languages must be translated into hybrid language before they can be executed. _________________________

(True/False)
4.8/5
(34)

A high-level language statement is translated into a single machine language instruction.

(True/False)
4.8/5
(31)

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

(True/False)
4.9/5
(31)

A(n) ____ is a compiler embedded with a collection of supporting software.

(Multiple Choice)
4.8/5
(44)

The output of a parser is a(n) complete ____________________, or an error message if one cannot be constructed.

(Short Answer)
4.9/5
(38)

What are the four phases of compilation?

(Essay)
4.8/5
(30)

The goal symbol is the final nonterminal.

(True/False)
4.8/5
(35)
Showing 21 - 40 of 50
close modal

Filters

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