πŸ“Š Theory of Computation
Q. Grammars that can be translated to DFAs:
  • (A) Left linear grammar
  • (B) Right linear grammar
  • (C) Generic grammar
  • (D) All of these
πŸ’¬ Discuss
βœ… Correct Answer: (B) Right linear grammar
πŸ“Š Theory of Computation
Q. Two strings x and y are indistinguishable if:
  • (A) δ*(s, x) = δ* (s, y), i.e. the state reached by a DFA M on input x is the same as the state reached by M on input y
  • (B) if for every string z Π„ ∑* either both xz and yz are in language A on ∑* or both xz and yz are not in A
  • (C) Both above statements are true
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (C) Both above statements are true
πŸ“Š Theory of Computation
Q. Given an arbitrary non-deterministic finite automaton NFA with N states, the maximum number of states in an equivalent minimized DFA is at least:
  • (A) N2
  • (B) 2N
  • (C) 2N
  • (D) N!
πŸ’¬ Discuss
βœ… Correct Answer: (C) 2N
πŸ“Š Theory of Computation
Q. Regular expressions are
  • (A) Type 0 language
  • (B) Type 1 language
  • (C) Type 2 language
  • (D) Type 3 language
πŸ’¬ Discuss
βœ… Correct Answer: (A) Type 0 language
πŸ“Š Theory of Computation
Q. The regular expression 0*(10)* denotes the same set as
  • (A) (1*0)*1*
  • (B) 0+(0+10)*
  • (C) (0+1)*10(0+1)*
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) 0+(0+10)*
πŸ“Š Theory of Computation
Q. Consider the NFA M shown below. Let the language accepted by M be L. Let L1 be the language accepted by the NFA M1, obtained by changing the accepting state of M to a non-accepting state and by changing the non-accepting state of M to accepting states. Which of the following statements is true?
  • (A) L1 = {0,1}* − L
  • (B) L1 = {0,1}*
  • (C) L1 is a subset of L
  • (D) L1 = L
πŸ’¬ Discuss
βœ… Correct Answer: (A) L1 = {0,1}* − L
πŸ“Š Theory of Computation
Q. Which of the statements is true:
  • (A) The complement of a regular language is always regular.
  • (B) Homomorphism of a regular language is always regular.
  • (C) Both of the above are true statements
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (C) Both of the above are true statements
πŸ“Š Theory of Computation
Q. The regular sets are closed under:
  • (A) Union
  • (B) Concatenation
  • (C) Kleene closure
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (D) All of the above
πŸ“Š Theory of Computation
Q. Any given transition graph has an equivalent:
  • (A) regular
  • (B) DFSM (Deterministic Finite State Machine)
  • (C) NDFSM
  • (D) All of them
πŸ’¬ Discuss
βœ… Correct Answer: (D) All of them

Jump to