GATE CS 2017, set 2 · Question 41 · Theory of Computation · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

Let L(R) be the language represented by regular expression R. Let L(G) be the language generated by a context free grammar G. Let L(M) be the language accepted by a Turing machine M. Which of the following decision problems are undecidable?
I. Given a regular expression R and a string w, is w ∈ L(R)?
II. Given a context-free grammar G, is L(G) = ∅ ?
III. Given a context-free grammar G, is L(G) = Σ^* for some alphabet Σ ?
IV. Given a Turing machine M and a string w, is w ∈ L(M)?

  1. (A) I and IV only
  2. (B) II and III only
  3. (C) II, III and IV only
  4. (D) III and IV only
Answer

Answer (D)

Answer from the official GATE CS 2017 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes