GATE CS 2021 Set 1 | Question 11

Theory of Computation › Context Free Grammar · MCQ · 1 mark · Answer: C

  1. Question 11Theory of Computationmcq1 mark
    Suppose that is a regular language and is a context-free language. Which one of the following languages is NOT necessarily context-free?
    • A.
    • B.
    • C.
      ✓
    • D.

    Answer: C

    Solution

    Regular CFL, regular CFL and regular CFL are all CFLs. But , and the complement of a CFL need not be a CFL, so is not necessarily context-free.

More GATE PYQ on Context Free Grammar

All GATE CS Theory of Computation PYQ →

Attempt GATE CS 2021 Set 1 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →