Computer Science EngineeringHard
In Greibach normal form every production has the form A -> a alpha, where alpha is
- A. a string of terminals
- B. any string of symbols
- C. a string of non-terminals (possibly empty)
- D. a single terminal
Correct answer: C. a string of non-terminals (possibly empty)
Each right-hand side starts with exactly one terminal followed only by non-terminals.
Practise more Theory of Computation, Compilers & Digital Logic (ISRO CS) questionsTheory of Computation, Compilers & Digital Logic (ISRO CS): notes and key points
More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions
- A universal Turing machine is able to
- Which computational model recognizes exactly the class of regular languages?
- Which compiler phase reads the character stream and groups it into tokens?
- How many states are in the minimal DFA over {a, b} that accepts exactly the strings ending in 'ab'?
- The regular expression (a+b) over the alphabet {a, b} denotes
- Context-free grammars correspond to which type in the Chomsky hierarchy?