Decidability & Computability

Answer & solution
Official answer: D
Statement 1 is decidable: repeatedly mark CFG variables that can derive terminal strings; L(G) is nonempty exactly when the start variable becomes marked. Statement 2, universality of a general CFG (whether L(G)=Σ*), is undecidable. Statement 3 is undecidable by Rice’s theorem: regularity is a nontrivial property of the language recognized by a Turing machine, since some recognizable languages are regular and some are not. Statement 4 is decidable: determinize the NFA, form the product automaton for the symmetric difference with the DFA, and test whether any accepting product state is reachable. Thus only 2 and 3 are undecidable, option D.
Separate finite-state and general-machine questions. DFA/NFA equivalence remains decidable even if determinization is exponentially expensive: decidability requires termination, not efficiency. CFG emptiness is a finite fixed-point computation over its nonterminals. In contrast, general CFG universality is a standard undecidable property. TM language regularity is semantic and nontrivial, so Rice’s theorem applies; regular and nonregular recognizable languages both exist. These distinctions leave exactly 2and3.