Let A={a, b} and L=A*. Let X={anbn, n>0}. The languages L U X and X are respectively :
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: C. Regular, Not regular
Explanation
L ∪ X = A* ∪ X = A*, which is regular. X = {aⁿbⁿ | n > 0} is the classic non-regular language.
More Theory of Computation and Compilers questions
- Which of the following symbol table implementations is best suited if access time is to be minimum?
- The sum of minimum and maximum number of final states for a Deterministic Finite Automata (DFA) having ' P ' state is equal to :
- Three address codes can be represented in special structures known as : (A) Quadruples (B) Triples (C) Patterns (D) Indirect Triples
- Which of the statement is/are CORRECT ? (A) Moore and Mealy machines are finite state machines with output capabilities. (B) Any given Moor…
- Match List - I with List - II according to input to the compiler phase that process it :
- Arrange the following phases of a compiler as per their order of execution (start to end) (a) Target code generation (b) Syntax Analysis (c…