Theory of computation
Multiple Choice Questions (Set I)
In each of the following questions, choose the correct answer from the four choices provided.
| 1. | The following grammar
G = (N, T, P, S)
N = {S, A, B}
T = {a, b, c}
P : S → aSa
| ||||||||||||||||||||||||||||||||||||
| 2. | The following grammar
| ||||||||||||||||||||||||||||||||||||
| 3. | The following grammar
G = (N, T, P, S)
N = {S, A, B, C}
T = {a, b, c}
P : S → aS
| ||||||||||||||||||||||||||||||||||||
| 4. | The following grammar
| ||||||||||||||||||||||||||||||||||||
| 5. | Consider the following CFG
Consider the following derivation
This derivation is
| ||||||||||||||||||||||||||||||||||||
| 6. | Consider the following language
L = {anbncndn|n ≥ 1}
L is
| ||||||||||||||||||||||||||||||||||||
| 7. | Consider the following language
L = {anbn|n ≥ 1}
L is
| ||||||||||||||||||||||||||||||||||||
| 8. | Consider the following language
L = {anbmcpdq|n, m, p, q ≥ 1}
L is
| ||||||||||||||||||||||||||||||||||||
| 9. | The following CFG is in
S → AB
B → CD
B → AD
B → b
D → AD
D → d
A → a
C → a
| ||||||||||||||||||||||||||||||||||||
| 10. | The following CFG is in
S → aBB
B → bAA
A → a
B → b
| ||||||||||||||||||||||||||||||||||||
Answers
| |||||||||||||||||||||||||||||||||||||
HI Bhanu, I think answer for 6 question is A, please cross check once.
ReplyDeleteif answer is (a) , that means it is CFL.... if a language is in CFL then it should be in CSL and RE. so answer (b) is correct.
DeleteThe correct answer for question 1 is b.
ReplyDelete