Let A = {a, b} and L = A*. Let X = {aⁿbⁿ | n > 0}. The languages L ∪ 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
X ⊆ A*, so L ∪ X = A*, which is regular. X = aⁿbⁿ 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?
- Consider the grammar E → E + n | E × n | n. For the sentence n + n × n, the handles in the right-sentential forms of the reduction are:
- One of the purposes of using intermediate code in compilers is to:
- The sum of the minimum and maximum number of final states for a DFA having P states is equal to:
- Three-address code can be represented in special structures known as: (A) Quadruples (B) Triples (C) Patterns (D) Indirect Triples Choose t…
- Which of the statements is/are CORRECT? (A) Moore and Mealy machines are finite state machines with output capabilities. (B) Any given Moor…