If L1 and L2 are Regular Languages, then L1 ∪ L2 is a CFL.
Group of answer choices
True
False
Flag this Question
Question 61 pts
If L1 and L2 are CFLs, then L1 ∩ L2 and L1 ∪ L2 are CFLs.
Group of answer choices
True
False
Flag this Question
Question 71 pts
The regular expression ((ac*)a*)* = ((aa*)c*)*.
Group of answer choices
True
False
Flag this Question
Question 81 pts
Some context free languages are regular.
Group of answer choices
True
False
Flag this Question
Question 91 pts
All finite languages are context-sensitive languages.
Group of answer choices
True
False
Flag this Question
Question 101 pts
A context-free grammar (CFG) can contain the productions:
AB ⟶ bB, A ⟶ a | AB, B ⟶ b.
Group of answer choices
True
False
Flag this Question
Question 111 pts
Every language is generated by some Chomsky type 1 grammar.
Group of answer choices
True
False
Flag this Question
Question 121 pts
There are languages that are neither context-free nor deterministic context-free.
Group of answer choices
True
False
Flag this Question
Question 131 pts
Two pda’s with unequal numbers of states and transitions can accept the same language.
Group of answer choices
True
False
Flag this Question
Question 141 pts
All regular languages are deterministic context-free languages.
Group of answer choices
True
False
Flag this Question
Question 151 pts
Every language is either regular or context-free or context-sensitive.
Group of answer choices
True
False
Flag this Question
Question 161 pts
There is a recursively enumerable language whose complement is not recursively enumerable.
Group of answer choices
True
False
Flag this Question
Question 171 pts
Every Chomsky type 1 language is recursive and every type 0 language is recursively enumerable.
Group of answer choices
True
False
Flag this Question
Question 181 pts
Every TM has some input on which it will run forever.
Group of answer choices
True
False
Flag this Question
Question 191 pts
Every language is decided by some Turing Machine.
Group of answer choices
True
False
Flag this Question
Question 201 pts
All Turing Machines eventually halt on input λ.
Group of answer choices
True
False
Flag this Question
Question 211 pts
The regular expression (a*ab+ba)*a* = (a+ab+ba)*.
Group of answer choices
True
False
Flag this Question
Question 221 pts
There are CFLs L1 such that L1 ≠L(M) for any deterministic pda M.
Group of answer choices
True
False
Flag this Question
Question 231 pts
The language { aibjckdlemfn : i, j, k, l, m, n ≥ 1 } is recursive.
Group of answer choices
True
False
Flag this Question
Question 241 pts
A Chomsky type 0 language is always inherently ambiguous.
Group of answer choices
True
False
Flag this Question
Question 251 pts
The empty string is never in the empty language.
Group of answer choices
True
False
Flag this Question
Question 261 pts
The context-free languages are a proper subset of the context-sensitive languages.
Group of answer choices
True
False
Flag this Question
Question 271 pts
An infinite language contains only strings of finite length.
Group of answer choices
True
False
Flag this Question
Question 281 pts
Every CFL can be described by an infinite number of CFGs.
Group of answer choices
True
False
Flag this Question
Question 291 pts
Every subset of a regular language is regular.
Group of answer choices
True
False
Flag this Question
Question 301 pts
Every leftmost derivation corresponds to a unique parse tree, and vice-versa.
Group of answer choices
True
False
Flag this Question
Question 311 pts
Any infinite regular language properly contains another infinite regular language.
Group of answer choices
True
False
Flag this Question
Question 321 pts
Every subset of a context-free language is context-free.
Group of answer choices
True
False
Flag this Question
Question 331 pts
If L1 ∩ L2 is regular, then both L1 and L2 must also be regular.
Group of answer choices
True
False
Flag this Question
Question 341 pts
If L(G) is finite, then G is a regular grammar.
Group of answer choices
True
False
Flag this Question
Question 351 pts
A standard TM is equivalent to a PDA with two independent stacks.
Group of answer choices
True
False
Flag this Question
Question 361 pts
Nonregular languages are always infinite.
Group of answer choices
True
False
Flag this Question
Question 371 pts
Nondeterminism adds no power to deterministic finite automata.
Group of answer choices
True
False
Flag this Question
Question 381 pts
An infinite language must contain an infinite number of strings
Group of answer choices
True
False
Flag this Question
Question 391 pts
Nondeterminism adds no power to deterministic PDAs.
Group of answer choices
True
False
Flag this Question
Question 401 pts
Nondeterminism adds no power to deterministic Turing machines.
Group of answer choices
True
False
Flag this Question
Question 411 pts
Every finite language can be generated by a regular expression with no star closures.
Group of answer choices
True
False
Please Note: I have answered the first 4 Questions, according to HOMEWORKLIB RULES. Please Re-Post for receiving answers on the other questions.
Answer)
1. True, if they are individually are Regular then the union is
CFL
2. False, L1 ∩ L2 does not need to be context free.
3. False, They can generate different strings for different requirements.
4. True, Not all CFG are regular, thus it is true.
**Please Hit Like if you appreciate my answer. For further doubts on the question or answer please drop a comment, I'll be happy to help. Thanks for posting.**
If L1 and L2 are Regular Languages, then L1 ∪ L2 is a CFL. Group of answer choices...
Determining whether languages are finite, regular, context free, or recursive 1. (Each part is worth 2 points) Fill in the blanks with one of the following (some choices might not be used): a) finite b) regular but not finite d) context-free but not deterministic context-free e) recursive (that is, decidable) but not context-free f) recursively enumerable (that is, partially decidable) but not recursive g) not recursively enumerable Recall that if M is a Turing machine then "M" (also written as...
Suppose L1, L2, and L3 are languages and T1, T2, and T3 are Turing machines such that L(T1) = L1, L(T2) = L2, L(T3) = L3, knowing that T3 is recursive (always halts, either halts and accepts or halts and rejects) and both T1 and T2 are recursive enumerable so they may get stuck in an infinite loop for words they don't accept.. For each of the following languages, describe the Turing machine that would accept it, and state whether...
2. Properties of the following: (a) Regular languages (b) Context-free languages (c) Regular expressions (d) Non-deterministic finite automaton (e) Turing-recognizable and Turing-decidable languages (f) A <m B and what we can then determine (g) A <p B and what we can then determine (h) NP-hard and NP-complete.
The languages L1 = {anbm | m = n or m = 2n } and L2 = {a n b m | n <= m <= 2n } are context free. a. Choose one of the languages and write a CFG for it. b. Write the PDA that comes from your grammar (part a). Show the first 4 moves it would make on some string in your language (of length at least 4). Be sure to show state, input, and...
Question 3 3 pts There are NDTMs for which there is no equivalent DTM. True O False Question 4 3 pts Every DTM is associated with a recursive language but every NDTM is only associated with an RE language. O True O False Question 5 3 pts The intersection of a context-free language and a recursive language is recursively enumerable. O True False
For each of the following statements, where L1, L2, and L are languages over some alphabet Σ, state whether it is true or false. Prove your answer. • ∀L,(∅ or L+) = L∗ • ∀L1,L2,(L1 or L2)∗ = (L2 or L1)∗
For each of the following claims, state whether it is True or False. Briefly explain your answer. (1) If Li and L2 are regular languages, then L1 L2 = {w:we (L1-L2) or w € (L2-L1)} is regular. (2) If Li and L2 are regular languages and L1 CL CL2, then L must be regular. (3) If Lis regular, then so is {xy : X E L andy & L}. (4) The union of a finite number of regular languages must...
what is the minimal corresponding maching (Finite Automata, Pushdown Automata, or Turing Machine) for each of the following languages? State which method is being used P3) What is the minimal corresponding machine (FA, PDA or TM) for each of the following languages? (You must provide proper explanations or proofs for your answer.) (30 points) o) L1 (every strings consist with a and b 0, 00,000), 0). (b) L2 balanced parenthesises , For example L2- (a) Ls ab" al n 20)...