Theory of Computation MCQs – Set 59
UGC NET Paper 2 Computer Science DEC 2013 – Theory of Computation
1161. Match: a. CFG; b. Regular; c. CSG; d. Unrestricted – i. PDA; ii. DFA; iii. LBA; iv. TM.
Theory of Computation • Automata theory • UGC NET Paper 2 Computer Science DEC 2013
1162. LRE, LCS, LREC, LCF, LDCF: inclusion chain is
Theory of Computation • Language classes • UGC NET Paper 2 Computer Science DEC 2013
1163. S1: SLR uses Follow-info; LR/LALR use lookaheads in items. S2: LR grammars ⊃ SLR/LALR. Which?
Theory of Computation • Parsing: LR Variants • UGC NET Paper 2 Computer Science DEC 2013
1164. A top-down parser uses which derivation scanning left to right?
Theory of Computation • Parsing: Top-Down • UGC NET Paper 2 Computer Science DEC 2013
1165. _______ is often used to prove correctness of a recursive function.
Theory of Computation • Proof Techniques • UGC NET Paper 2 Computer Science DEC 2013
1166. The resolvent of {A∨B, ¬A∨D, C∨¬B} is
Theory of Computation • Resolution • UGC NET Paper 2 Computer Science DEC 2013
1167. NFA→minimal DFA needs how many states for given table?
Theory of Computation • Automata • UGC NET Paper 2 Computer Science DEC 2013
1168. Given L₁ = a* b a a* and L₂ = a b*, the right-quotient L₁/L₂ is:
Theory of Computation • Formal Languages • UGC NET Paper 2 Computer Science DEC 2013
1169. Given grammars G₁ and G₂, which is correct?
Theory of Computation • Parsing • UGC NET Paper 2 Computer Science DEC 2013
1170. A PDA is deterministic if δ(q,a,b) has ≤1 move, and if δ(q,λ,b)≠∅ then δ(q,c,b)=∅ for all c∈Σ.
Theory of Computation • Automata theory • UGC NET Paper 2 Computer Science DEC 2013
1171. Match grammars to automata: (a) C-sensitive (b) Regular (c) C-free (d) Unrestricted — (i) DFA (ii) PDA (iii) LBA (iv) TM
Theory of Computation • Automata theory • UGC NET Paper 2 Computer Science DEC 2013
1172. A file of 100 000 chars over {g–l} with frequencies 45k,13k,12k,16k,9k,5k can be Huffman-coded into approximately
Theory of Computation • Coding & compression • UGC NET Paper 2 Computer Science DEC 2013
1173. s₁: CSL closed under intersection, concatenation, substitution, inverse homomorphism. s₂: CFL closed under complementation, substitution, homomorphism.
Theory of Computation • Formal languages • UGC NET Paper 2 Computer Science DEC 2013
1174. Horn clauses are propositions with________.
Theory of Computation • Logic programming • UGC NET Paper 2 Computer Science DEC 2013
1175. S1: Algorithm exists to decide if CFG’s language is infinite. S2: Algorithm exists to test CFG equivalence. Which hold?
Theory of Computation • Decidability • UGC NET Paper 2 Computer Science DEC 2013
1176. Number of states in minimal DFA for L={aⁿ | n≥4} is ___.
Theory of Computation • DFA Minimization • UGC NET Paper 2 Computer Science DEC 2013
1177. Reg-exp for L={w∈{0,1}* | w has no consecutive zeros} is ___.
Theory of Computation • Regular Languages • UGC NET Paper 2 Computer Science DEC 2013
1178. 0–1 knapsack via greedy? Fractional via DP? Which?
Theory of Computation • Algorithms • UGC NET Paper 2 Computer Science DEC 2013
1179. L={aⁿbⁿaᵐbᵐ | n,m≥0} is ________
Theory of Computation • Formal languages • UGC NET Paper 2 Computer Science DEC 2013
1180. NPDA M with transitions accepts ________
Theory of Computation • Pushdown automata • UGC NET Paper 2 Computer Science DEC 2013
Disclaimer for MCQ Quiz
This quiz is for educational purposes only…