1.

Which of the following will ensure that the output string never contains a substring of the form 01n 0 or 10n1 where n is odd?

A. P(S) at W, V(S) at X, P(T) at Y, V(T) at Z, S and T initially 1
B. P(S) at W, V(T) at X, P(T) at Y, V(S) at Z, S and T initially 1
C. P(S) at W, V(S) at X, P(S) at Y, V(S) at Z, S initially 1
D. V(S) at W, V(T) at X, P(S) at Y, P(T) at Z, S and T initially 1
Answer» D. V(S) at W, V(T) at X, P(S) at Y, P(T) at Z, S and T initially 1


Discussion

No Comment Found

Related MCQs