Exam 10: Compilers and Language Translation

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

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
(35)

A lexical analyzer is more commonly known as a scanner.

(True/False)
4.9/5
(37)

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

(True/False)
4.8/5
(40)

The code a compiler produces should be efficient and concise.

(True/False)
4.7/5
(39)

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

(True/False)
4.7/5
(38)

In BNF, a ____ is an intermediate grammatical category used to help explain and organize the language.

(Multiple Choice)
4.7/5
(34)

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

(Multiple Choice)
4.8/5
(29)

Which factor plays the biggest role in code efficiency?

(Multiple Choice)
4.8/5
(42)

What is the format of a BNF rule?

(Multiple Choice)
4.8/5
(32)

The ____ represents the empty nonterminal.

(Multiple Choice)
4.9/5
(34)

In BNF, the ____ is used to separate two alternative definitions of a nonterminal.

(Multiple Choice)
4.9/5
(35)

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

(True/False)
4.8/5
(34)

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

(Multiple Choice)
4.9/5
(34)

Parsing is the first phase of the compilation process.

(True/False)
4.8/5
(28)

The ____ of a statement is its grammatical structure.

(Multiple Choice)
4.9/5
(41)

Nonterminals must appear on the left-hand side of one or more BNF rules.

(True/False)
4.8/5
(41)

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

(Multiple Choice)
4.8/5
(45)

A BNF rule is also known as a production.

(True/False)
4.9/5
(34)

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

(Multiple Choice)
4.8/5
(33)

During the compilation process, ____ is the next step after the code generation step.

(Multiple Choice)
4.8/5
(48)
Showing 21 - 40 of 50
close modal

Filters

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