The language {0n 1n 2n | 1 ≤ n ≤ 106} is

PYQ GATE 2005

The language {0n 1n 2n | 1 ≤ n ≤ 106} is

  1. A.

    regular

  2. B.

    context-free but not regular.

  3. C.

    context-free but its complement is not context-free.

  4. D.

    not context-free

Attempted by 585 students.

Sign up free to check your answer

Sign up free

Explore the full course: Zero To Hero

Loading lesson…