FA2 Flashcards
(58 cards)
A __________is a group of characters having a collective meaning.
Group of answer choices
None of the Above
TOKEN
NODE
STRING
TOKEN
The regular expression is a set of rules that say how to build a tree—a parse tree.
Group of answer choices
True
False
F
A grammar is a set of strings over an alphabet.
Group of answer choices
True
False
F
The Lexical analyzer does not have to be an individual phase.
Group of answer choices
True
False
T
A __________ over an alphabet is a finite sequence of symbols drawn from that alphabet.
STRING
There are a number of algebraic laws that are obeyed by regular expressions, which can be used to manipulate regular expressions into equivalent forms.
Group of answer choices
True
False
T
The grammar defined by regular expressions is known as regular grammar.
Group of answer choices
True
False
F
In verifying the validity of expressions in Lexical Analysis, a well-accepted solution is to use finite automata for verification.
Group of answer choices
True
False
T
Lexical analyzer does not have to be an individual phase. But having a separate phase simplifies the design and improves the efficiency and portability.
Group of answer choices
True
False
T
An expression can be the sum of two expressions, or the product of two expressions, or a parenthesized subexpression.
Group of answer choices
True
False
T
In panic mode, when a parser encounters an error anywhere in the statement, it ignores the rest of the statement by not processing input from erroneous input to delimiter, such as semi-colon.
Group of answer choices
True
False
T
One of the major roles of the parser is not to produce an intermediate representation (IR) of the source program using syntax-directed translation methods.
Group of answer choices
True
False
F
___________It is defined as the grammar in each programming language.
Group of answer choices
SEMANTICAL
SYNTAX
LOGICAL
None of the Above
SYNTAX
A type of error about the incompatible value assignment.
Group of answer choices
LOGICAL
SEMANTICAL
ANALYTICAL
None of the Above
SEMANTICAL
A type of error about some missing semicolon or unbalanced parenthesis.
Group of answer choices
ANALYTICAL
LOGICAL
None of the Above
SYNTACTICAL
SYNTACTICAL
The Semantic analyzer: reads input characters and produces a sequence of tokens as output.
Group of answer choices
True
False
T
_____________is a state machine that takes a string of symbols as input and changes its state accordingly.
FINITE AUTOMATA
In Notation, Union : (r)|(s) is a regular expression denoting L(r) U L(s).
Group of answer choices
True
False
T
A lexeme is a particular instant of a token.
Group of answer choices
True
False
T
The generated lexers are in a class of extremely simple programs called ________________.
FINITE AUTOMATA
The language defined by regular grammar is known as Irregular language.
Group of answer choices
True
False
T
The regular expressions is an algebraic notation for describing sets of strings.
Group of answer choices
True
False
T
The pattern is the rule describing how a token can be formed.
Group of answer choices
True
False
T
In Lexical analysis, a well-accepted solution is to use finite automata for verification.
Group of answer choices
True
False
T