Exam 11: Compilers and Language Translation

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

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

(True/False)
4.8/5
(45)

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

(Multiple Choice)
4.8/5
(34)

During the parsing phase, the sequence of tokens formed by the scanner is checked to see whether it is _________ correct according to the rules of the programming language.

(Multiple Choice)
5.0/5
(24)

Explain what the goal symbol is, and explain what its significance is.

(Essay)
4.8/5
(35)

Focus on one of the three optimizations discussed and explain the type of program it would be best suited for and the type of program that it wouldn't be very good with.

(Essay)
4.9/5
(37)

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.8/5
(36)

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

(True/False)
4.7/5
(35)

A ____ is a data structure that stores information about a nonterminal, such as the actual name of the object and its data type.

(Multiple Choice)
4.8/5
(48)

____ is the ability to write highly optimized programs that contain no wasted time or unnecessary memory cells.

(Multiple Choice)
4.8/5
(43)

The output of a scanner is a list of all the _______ contained in a high-level language statement as well as the classification number of each token found.

(Short Answer)
4.8/5
(49)

A BNF rule is also known as a token.

(True/False)
4.7/5
(40)

The singular goal of compilers is correctness.

(True/False)
4.8/5
(36)

Explain what the goal in compiler design today is.

(Essay)
4.8/5
(38)

What is the fundamental rule of parsing?

(Essay)
4.8/5
(47)

____ 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
(43)

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

(True/False)
4.7/5
(29)

Parsing is the first phase of the compilation process. _________________________

(True/False)
4.7/5
(48)

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

(Multiple Choice)
4.8/5
(36)

The Greek character lambda represents ___.

(Multiple Choice)
4.9/5
(33)

Present what each individual BNF rule looks like, and briefly explain its components.

(Essay)
4.7/5
(37)
Showing 21 - 40 of 50
close modal

Filters

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