πŸ“Š Theory of Computation
Q. Let L denotes the language generated by the grammar S – OSO/00. Which of the following is true?
  • (A) L = O
  • (B) L is regular but not O
  • (C) L is context free but not regular
  • (D) L is not context free
πŸ’¬ Discuss
βœ… Correct Answer: (B) L is regular but not O
πŸ“Š Theory of Computation
Q. Let S and T be language over ={a,b} represented by the regular expressions (a+b*)* and (a+b)*, respectively. Which of the following is true?
  • (A) ScT (S is a subset of T)
  • (B) TcS (T is a subset of S)
  • (C) S=T
  • (D) SnT=Ø
πŸ’¬ Discuss
βœ… Correct Answer: (C) S=T
πŸ“Š Theory of Computation
Q. Which of the following pairs have DIFFERENT expressive power?
  • (A) Deterministic finite automata (DFA) and Non-Deterministic finite automata(NFA)
  • (B) Deterministic push down automata (DPDA) and Non-deterministic pushdown automata
  • (C) Deterministic single-tape Turing machine and Non-deterministic single-tape Turing Machine
  • (D) Single-tape Turing machine and multi-tape Turing machine
πŸ’¬ Discuss
βœ… Correct Answer: (B) Deterministic push down automata (DPDA) and Non-deterministic pushdown automata
πŸ“Š Theory of Computation
Q. Match all items in Group 1 with correct options from those given in Group 2. List I List II**spaceP. Regular Expression 1. Syntax analysis**spaceQ. Push down automata 2. Code Generation**spaceR. Dataflow analysis 3. Lexical analysis**spaceS. Register allocation 4. Code optimization
  • (A) P-4, Q-1, R-2, S-3
  • (B) P-3, Q-1, R-4, S-2
  • (C) P-3, Q-4, R-1, S-2
  • (D) P-2, Q-1, R-4, S-3
πŸ’¬ Discuss
βœ… Correct Answer: (B) P-3, Q-1, R-4, S-2
πŸ“Š Theory of Computation
Q. A minimum state deterministic finite automation accepting the language L = {W W € {0,1}* , number of 0's and 1's in W are divisible by 3 and 5 respectively has
  • (A) 15 states
  • (B) 11 states
  • (C) 10 states
  • (D) 9 states
πŸ’¬ Discuss
βœ… Correct Answer: (A) 15 states
πŸ“Š Theory of Computation
Q. Any Language generated by an unrestricted grammar is:
  • (A) Recursive
  • (B) Recursively Enumerable
  • (C) Not Recursive
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (A) Recursive
πŸ“Š Theory of Computation
Q. The Family of recursive language is not closed under which of the following operations:
  • (A) Union
  • (B) Intersection
  • (C) Complementation
  • (D) None of the above.
πŸ’¬ Discuss
βœ… Correct Answer: (D) None of the above.
πŸ“Š Theory of Computation
Q. Let SHAM3 be the problem of finding a Hamiltonian cycle in a graph G =(V,E)with V divisible by 3 and DHAM3 be the problem of determining if a Hamiltonian cycle exists in such graphs. Which one of the following is true?
  • (A) Both DHAM3 and SHAM3 are NP-hard
  • (B) SHAM3 is NP-hard, but DHAM3 is not
  • (C) DHAM3 is NP-hard, but SHAM3 is not
  • (D) Neither DHAM3 nor SHAM3 is NP-hard
πŸ’¬ Discuss
βœ… Correct Answer: (A) Both DHAM3 and SHAM3 are NP-hard

Jump to