GATE CSE 2019 Q44: Which sets of languages and programs are uncountable
- Theory of Computation
- 2 marks
- MCQ
- −2/3 if wrong
Syllabus topics: Turing machines and undecidability; Sets, relations, functions, partial orders and lattices
Question
Consider the following sets:
S1. Set of all recursively enumerable languages over the alphabet
S2. Set of all syntactically valid C programs
S3. Set of all languages over the alphabet
S4. Set of all non-regular languages over the alphabet
Which of the above sets are uncountable?
Try it: multiple choice: exactly one correct option
Show answer and explanation
Answer: B (official GATE 2019 final answer key)
Concept used: Anything described by a finite string (programs, Turing machines, hence RE languages) is countable, while the power set of the countable set is uncountable, and removing a countable subset from it leaves it uncountable.
First step: Ask for each set whether its members can be listed as finite strings (one TM or program per member); the set of all languages is the power set of .
Full step-by-step solution
Loading…
Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.
More questions on Turing machines and undecidability
Every PYQ on this topic →Share this question
Source: official GATE 2019 CS question paper and final answer key, organised by IIT Madras. Question paper · Answer key
More Theory of Computation PYQs
- 2026 Session 1 · Q25Ambiguity of S → aSbS | bS | ε
- 2026 Session 1 · Q26Impossible minimal DFA sizes for a 6-state NFA
- 2026 Session 1 · Q51What follows from L1 ∩ L2 and L2 being regular
- 2026 Session 1 · Q52Counts of a's and b's in strings of a given CFG
- 2026 Session 2 · Q13Meaning of a Turing machine deciding a language
- 2026 Session 2 · Q29Which of four grammars are ambiguous