On This Page

This set of Theory of Computation Multiple Choice Questions & Answers (MCQs) focuses on Theory Of Computation Unit 1 Set 2

Q1 | Let P be a regular language and Q be context-free language such that Q ∈ P. (For example, let P be the language represented by the regular expression p*q* and Q be {pnqnn∈ N}). Then which of the following is ALWAYS regular?
Q2 | Given a Non-deterministic Finite Automation (NFA) with states p and r as initial and final states respectively and transition table as given below:A BP - Qq R Sr R Ss R SThe minimum number of states required in Deterministic Finite Automation(DFA) equivalent to NFA is
Q3 | Which one of the following statement is true for a regular language L over {a} whose minimal finite state automation has two states?
Q4 | The …………. is said to be ambiguous if there exist at least one word of its language that can be generated by the different production tree .
Q5 | Type-1 Grammar is known as_____________
Q6 | If G is “S → a S/a”, then L(G) = ?
Q7 | “S →a S”, what is the type of this production?
Q8 | A→abA a type __________productions
Q9 | The following CFG is inS → AB**spaceB → CD**spaceB → AD**spaceB → b**spaceD → AD**spaceD → d**spaceA → a**spaceC → a
Q10 | The language accepted by a Push down Automata:
Q11 | Which of the following problems is undecidable?
Q12 | Which one of the following statement is FALSE?
Q13 | Which of the following strings is not generated by the following grammar? S → SaSbSε
Q14 | Which of the following regular expression identity is true?
Q15 | A language L is accepted by a FSA iff it is
Q16 | Consider the following CFGS → aB S → bA**spaceB → b A → a**spaceB → bS A → aS**spaceB → aBB A → bAA**spaceConsider the following derivation**spaceS ⇒aB**space⇒aaBB**space⇒aaBb**space⇒aabSb**space⇒aabbAb**space⇒aabbab**spaceThis derivation is
Q17 | Consider the following language L = {anbncndnn ≥ 1} L is
Q18 | A language is represented by a regular expression (a)*(a + ba). Which of the following strings does not belong to the regular set represented by the above expression?
Q19 | Which of the following denotes Chomskianhiearchy?
Q20 | The concept of FSA is much used in this part of the compiler
Q21 | The following grammarG = (N, T, P, S)**spaceN = {S, A, B, C, D, E}**spaceT = {a, b, c}**spaceP : S → aAB**spaceAB → CD**spaceCD → CE**spaceC → aC**spaceC → b**spacebE → bc is
Q22 | The following CFG is inS → aBB**spaceB → bAA**spaceA → a**spaceB → b
Q23 | Which of the following statements is wrong?
Q24 | Context free grammar is not closed under
Q25 | Which of the following statement is wrong?