Exam 6: Syntax
Exam 1: Introduction50 Questions
Exam 2: Language Design Criteria50 Questions
Exam 3: Functional Programming50 Questions
Exam 4: Logic Programming50 Questions
Exam 5: Object-Oriented Programming50 Questions
Exam 6: Syntax50 Questions
Exam 7: Basic Semantics50 Questions
Exam 8: Data Types50 Questions
Exam 9: Control I - Expressions and Statements50 Questions
Exam 10: Control II - Procedures and Environments50 Questions
Exam 11: Abstract Data Types and Modules50 Questions
Exam 12: Formal Semantics50 Questions
Exam 13: Parallel Programming51 Questions
Select questions type
____ are symbols used to distinguish between parts of a rule.
Free
(Multiple Choice)
4.7/5
(29)
Correct Answer:
C
The lexical structure of a programming language is the structure of its ____.
Free
(Multiple Choice)
4.8/5
(36)
Correct Answer:
B
A recognizer is a program that accepts or rejects strings based on whether they have occurred before.
Free
(True/False)
4.9/5
(39)
Correct Answer:
False
A grammar for which two distinct parse trees are possible for the same string is considered to be ambiguous.
(True/False)
4.8/5
(28)
Derivation is the process that replaces left-hand sides by choices of right-hand sides appearing in prior rules.
(True/False)
5.0/5
(37)
In extended Backus-Naur form,square brackets [ ] indicate optional parts of the syntax.
(True/False)
4.9/5
(42)
Shift-reduce parsers shift tokens onto a stack before reducing strings to nonterminals.
(True/False)
4.9/5
(42)
____ are phrase structures that are broken down into further phrase structures.
(Multiple Choice)
4.9/5
(31)
A conflict between syntax and semantics arises when languages require certain strings to be predefined identifiers rather than reserved words.
(True/False)
4.8/5
(39)
____ have been given an initial meaning for all programs in the language but are capable of being redefined.
(Multiple Choice)
4.8/5
(29)
Backus-Naur forms are used to describe the syntax of programming languages such as Algol60.
(True/False)
4.7/5
(49)
A language is considered to be ____ when format has no effect on the program structure (other than to satisfy the principle of longest substring).
(Multiple Choice)
5.0/5
(32)
A ____ is the standard graphical depiction of syntax-directed semantics.
(Multiple Choice)
4.8/5
(42)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)