Top 150+ Solved Theory of Computation MCQ Questions Answer

From 46 to 60 of 137

Q. Which one of the following statement is FALSE?

a. context-free languages are closed under union

b. context-free languages are closed under concatenation

c. context-free languages are closed under intersection

d. context-free languages are closed under Kleene closure

  • c. context-free languages are closed under intersection

Q. Which of the following regular expression identity is true?

a. r(*) = r*

b. (r*s*)* = (r + s)*

c. (r + s)* = r* + s*

d. r*s* = r* + s*

  • b. (r*s*)* = (r + s)*

Q. A language L is accepted by a FSA iff it is

a. CFL

b. CSL

c. Recursive

d. Regular

  • d. Regular

Q. The concept of FSA is much used in this part of the compiler

a. Lexical analysis

b. Parser

c. Code generation

d. Code optimization

  • a. Lexical analysis

Q. Which of the following statements is wrong?

a. The regular sets are closed under intersection

b. The class of regular sets is closed under substitution

c. The class of regular sets is closed under homomorphism

d. Context Sensitive Grammar(CSG) can be recognized by Finite State Machine

  • d. Context Sensitive Grammar(CSG) can be recognized by Finite State Machine

Q. Context free grammar is not closed under

a. Product operation

b. Union

c. Complementation

d. kleene star

  • c. Complementation

Q. Which of the following statement is wrong?

a. Any regular language has an equivalent context-free grammar.

b. Some non-regular languages can’t be generated by any context-free grammar

c. Intersection of context free language and a regular language is always context-free

d. All languages can be generated by context- free grammar

  • d. All languages can be generated by context- free grammar

Q. Grammar that produce more than one Parse tree for same sentence is:

a. Ambiguous

b. Unambiguous

c. Complementation

d. Concatenation

  • a. Ambiguous

Q. The language accepted by a Push down Automata:

a. Type 0

b. Type 1

c. Type 2

d. Type 3

  • c. Type 2

Q. The PDA is called non-deterministic PDA when there are more than one out going edges from……… state:

a. START or READ

b. POP or REJECT

c. READ or POP

d. PUSH or POP

  • c. READ or POP
Subscribe Now

Get All Updates & News