UGC NET CS 2017Theory of Computation and Compilers › Theory of ComputationVerified
UGC NET CS 2017 PYQ: Given the following statements: A class of languages that is closed under union and complementation has to…
Given the following statements:
- A class of languages that is closed under union and complementation has to be closed under intersection
- A class of languages that is closed under union and intersection has to be closed under complementation
Which of the following options is correct?
- ABoth (i) and (ii) are false
- BBoth (i) and (ii) are true
- C(i) is true, (ii) is falseCorrect answer
- D(i) is false, (ii) is true
Answer
(C) (i) is true, (ii) is false
Approach
Use De Morgan's law to test (i) and a counterexample class to test (ii).
Reviewed by UGC IQ Editorial Team.