EXAM Flashcards
A context-free grammar is a recognizer mechanism.
False
A rule with both left recursion and right recursion makes the grammar ambiguous.
True
EBNF notation allows for a more concise grammar compared to an equivalent grammar in BNF notation.
True
The syntax analyzer verifies whether the tokens in a program are correct.
False
In a parse tree, the operator with the lowest precedence must appear at the lowest level of the tree.
False
A grammar rule with both left recursion and right recursion always generates the same parse tree.
False
BNF notation uses curly brackets, i.e. “{“ and “}” symbols, to indicate zero or more repetition of a symbol.
False
In a BNF grammar a terminal symbol can be replaced by other symbols.
False
To implement left associativity for an operator we use left recursion.
True
The static semantics are mostly used to prove the correctness of programs.
False
Lexical analysis generates a stream of valid tokens.
True
In a DFA, there can be more than one transition out from a state for an input.
False
Operational semantics present the meanings of language’s constructs in the form of smaller actions.
True
In regular grammars the epsilon symbol is a special non-terminal symbol which can be replaced with another symbol.
False
There is only one non-terminal on the RHS of a rule in regular grammars.
True
Backtracking parsing algorithms are very efficient in regard with execution time and memory consumption.
False
A bottom-up parsing table defines a non-deterministic finite automaton.
False
Parsing algorithms build parse trees by finding a derivation for a program.
True
In LR parsers, reduce operation means replacing a RHS with its equivalent LHS of a grammar rule.
True