GATE CS 2022 | Question 23
Theory of Computation › Regular Grammar · MSQ · 1 mark · Answer: B, C, D
- Question 23Theory of Computationmsq1 markWhich statements are TRUE?
- A.Every subset of a recursively enumerable language is recursive.
- B.If a language L and its complement are both recursively enumerable, then L is recursive.✓
- C.Complement of a context-free language must be recursive.✓
- D.If L1 and L2 are regular, then L1-L2 must be deterministic context-free.✓
Answer: B, C, D
Solution
Answer: (B), (C) and (D) - (B) If and are both RE, run both semi-deciders in parallel; one halts, deciding -> recursive. True. - (C) CFLs are recursive, and recursive languages are closed under complement, so is recursive. True. - (D) Regular languages are closed under difference, so is regular, hence deterministic context-free. True. - (A) False: a subset of an RE (even of a recursive) language can be non-recursive. - A.
More GATE PYQ on Regular Grammar
All GATE CS Theory of Computation PYQ →Attempt GATE CS 2022 in real GATE exam mode
Full paper with a timer, the GATE interface and a topic-wise analysis — free.
Create free account →