info@avatto.com
+91-9920808017
16. Which of the following suffices to convert an arbitrary CFG to an LL(1) grammar?
Removing left recursion alone
Factoring the grammar alone
Removing left recursion and factoring the grammar
None of the above
Your email address will not be published. Required fields are marked *
Report
Name
Email
Website
Save my name, email, and website in this browser for the next time I comment.
Comment
17. The grammar A → AA | (A) | ε is not suitable for predictive-parsing because the grammar is A. ambiguous B. Left-recursive C. right-recursive D. an operator-grammar
A and B
B and C
C and D
B and D
18. Which one of the following is a top-down parser?
Recursive descent parser
Operator precedence parser
An LR(k) parser
An LALR(k) parser
19. Consider the grammar with non-terminals N = {S, C, S1}, terminals T = {a, b, i, t, e}, with S as the start symbol, and the following set of rules S → iCtSS1|a S → eS|ε C → b The grammar is NOT LL(1) because:
It is left recursive
It is right recursive
It is ambiguous
It is not context-free
20. Consider the following two statements: P: Every regular grammar is LL (1) Q: Every regular set has LR (1) grammar Which of the following is TRUE?
Both P and Q are true
P is true and Q is false
P is false and Q is true
Both P and Q are false
Login with Facebook
Login with Google
Forgot your password?
Lost your password? Please enter your email address. You will receive mail with link to set new password.
Back to login