Theory of Computation - TOC
« Previous Next » |
1. That finite automata which does not contain any ambiguity is called
DFA
2. Machine without output
DFA
3. PDA is a set of _____ tupples
7
4. Grammar ia s set of following tuples
(V,T,P,S)
5. Construct a Regular Expression which accept string of 0's and 1's end with substring 00.
(0 + 1)* (00)
6. Construct a Regular Expression which accept string of a's and b's contain one a's and two b's
abb +bab +bba
7. ε + 11* =
1+ (1 positive closure)
8. Which grammar is in GNF
A->aB, B->b
9.εεaεεbεcεε=
abc
10.Moore Machine is an application of
Finite automata with output
11. In Moore machine produce output over the change of
transitions
12. Moore Machine produce output of length ______ for any input string
|Input|+1
13. "What is the output for the given language?
Language: A set of strings over ∑= {a, b} is taken as input and it prints 1 as an output “for every occurrence of a, b as its substring. (INPUT: abaaab)"
10001
14. In Moore machine output alphabet can be represented as:
∆
15. Which of the following is a correct statement?
Moore machine has no final states
16. In mealy machine, the O/P depends upon?
state and input
17. The major difference between Mealy and Moore machine can be can be identify by
output
18. The major difference between Mealy and Moore machine can be can be identify by
output
19. Which of the following does not belong to input alphabet if S={a, b}* for any language?
ε
20. The number of final states we need as per the given language? Language L: {an| n is even or divisible by 3}
2
21.A Language for which no DFA exist is a________
Non-Regular Language
22. How we know 2 finite states are equivalent?
When same number of states as well as transitions
23. Can a DFA recognize a palindrome number?
No
24. Let ∑= {a, b, …. z} and A = {TOC, Quiz}, B= {Input, Output}, then (A*∩B) U (B*∩A) can be represented as:
{}
25. The language of all words with at least 2 0's can be described by the regular expression
All of these
26. The following CFG is in S -> aBB , B -> bAA , A -> a, B -> b
Greibach normal form
27. In a context-sensitive grammar, number of grammar symbols on the left hand side of a production can't be greater than the number of
Non-terminals on the right hand side
28. Which of the following denotes Chomskian hiearchy?
REG -> CFL -> CSL -> type0
29. A grammar that produces more than one parse tree for some sentence is called
Ambiguous
30. If R1 and R2 are the regular expressions denoting the languages L1 and L2 respectively, then which of the following is wrong?
φ is not a regular expression
31. A language is represented by a regular expression (0)*(0 + 10). Which of the following string does not belong to the regular set represented by the above expression.
1010
32. Which of the following is true?
Every finite subset of non-regular set is regular
33. A push down automata is different than finite automata by
Its memory
34. Turing machine is more powerful than (a) Finite automata, (b) Push down
Only (b)
35. Turing machine was invented by
Alan Turing
36. NPDA stands for
non deterministic pushdown automata
37. A Turing machine with several tapes in known as
Multi-tape Turing machine
38. If P, Q, R are three regular expressions and if P does not contain epsilon, then the equation R = Q + RP has a unique solution given by
QP*
39. A language L is said to be ___ if there is a turing machine M such that L(M)=L and M halts at every point.
Decidable
40. Which of the given problems are NP-complete?
Traveling Salesman Problem
41. A grammar G=(V,T,P,S) in which V represents
Set of non terminals
42. A PDA chooses the next move based on
current state, stack and input
43. The difference between number of states in FA for regular expression (a + b) and (a + b) * is:
1
44. Which among the following is the LEAF of the parse tree?
Terminal T
45. The ability for a system of instructions to simulate a Turing Machine is called
Turing Completeness
46. Which of the following statement is false?
There exists a unique DFA for every regular language
47. Identify the following problem: If G=(V, E) and V’ is subset of V, then V’ is an independent set if no two nodes in V’ are connected by an edge in E.
Independent set
48. Which one of the following languages over the alphabet {a,b} is described by the regular expression: (a+b)*a(a+b)*a(a+b)* ?
The set of all strings containing at least two a’s.
49. Which one of the following is FALSE?
Every nondeterministic PDA can be converted to an equivalent deterministic PDA.
50.The regular expression a*(ba*)* denotes the same set as
(b*a)*b*
51. Let S and T be language over Σ = {0,1} represented by the regular expressions (0+1*)* and (0+1)*, respectively. Which of the following is true?
S = T
52. How many minimum states are required in a DFA to find whether a given binary string has odd number of 0's or not, there can be any number of 1's
2
53. The number of states in the minimal deterministic finite automaton corresponding to the regular expression (a + b)*(ba) is ____________
3
54. The language accepted by a Push down Automata
Type2
55. Correct hierarchical relationship among context- free, right-linear, and context-sensitive language is
right-linear ⊂context-free ⊂context-sensitive
56. Which of the following CFG's can't be simulated by an FSM?
aSb | ab
57. Consider a grammar with the following productions S--> aab | bac | aB,S --> α S |,S --> α b b | ab,Sα --> bdb | b The above grammar is
Context sensitive
58. Which of the following statement is wrong?
All non-regular languages can be generated by CFGs
59. Which of the following conversion is not possible (algorithmically)?
Nondeterministic PDA to deterministic PDA
60. The grammars G = ( { s }, { a, b }, p , s) where, p = (s —> 0S1, S —> 0S, S —> S1, S —>a} is a
Regular language
« Previous Next » |
No comments:
Post a Comment