Exam 11: Compilers and Language Translation

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

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

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

D

In the ____ phase, the compiler examines the individual characters in the source program and groups them into tokens.

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

C

The singular goal of compilers is correctness.

Free
(True/False)
4.8/5
(36)
Correct Answer:
Verified

False

Explain what metasymbols are and discuss their use as part of BNF rules.

(Essay)
4.9/5
(38)

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.9/5
(40)

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

(Essay)
4.9/5
(36)

During parsing, a compiler deals only with the ____ of a statement.

(Multiple Choice)
4.9/5
(28)

____ is the replacement of slow arithmetic operations with faster ones.

(Multiple Choice)
4.9/5
(34)

The English-language sentence, "The orange artichoke flew through the elephant" is semantically meaningful. _________________________

(True/False)
4.7/5
(33)

A(n) ____ definition defines a nonterminal symbol in terms of itself.

(Multiple Choice)
4.7/5
(36)

One of the possible local ____________________ is eliminating unnecessary operations.

(Short Answer)
4.8/5
(35)

____________________ for high-level languages like C++ or Java are very large.

(Short Answer)
4.7/5
(38)

A grammar that allows the construction of two or more distinct parse trees for the same statement is called a recursive grammar.

(True/False)
4.7/5
(39)

In the ____ phase, the compiler takes the generated code and sees whether it can be made more efficient, either by making it run faster or having it occupy less memory.

(Multiple Choice)
4.8/5
(38)

____ parsing algorithms examine several tokens "down the road" to see what would happen if a certain choice was made.

(Multiple Choice)
4.8/5
(33)

A ____ shows how individual tokens can be grouped into predefined grammatical categories until the desired goal is reached.

(Multiple Choice)
5.0/5
(46)

The input to a scanner is the machine language statement from the source program.

(True/False)
4.8/5
(31)

List three possible local optimizations.

(Essay)
4.8/5
(40)

The output of a(n) ____________________ is a list of all the tokens contained in a high-level language statement, as well as the classification number of each token found.

(Short Answer)
4.7/5
(34)

A BNF rule is also known as a production.

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

Filters

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