GATE CS 2020 · Question 20 · Theory of Computation · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer
Consider the language L = {aⁿ | n ≥ 0} ∪ {aⁿ bⁿ | n ≥ 0} and the following statements.
I. L is deterministic context-free.
II. L is context-free but not deterministic context-free.
III. L is not LL(k) for any k.
Which of the above statements is/are TRUE?
- (A) I only
- (B) II only
- (C) I and III only
- (D) III only
Answer
Answer (C)
Answer from the official GATE CS 2020 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes