Multiple Choice
Consider a string s over (0+1) *. The number of 0's in s is denoted by no(s) and the number of 1's in s is denoted by n1(s) . The language that is not regular is
A) L = {s ? (0+1) * I for every prefix s' of s, I no(s') -n1(s') I ? 2}
B) L = {s ? (0+1) * I no(s) mod 7 = n1(s) mod 5 = 0}
C) L = {s ? (0+1) * I no(s) is a 3 digit prime}
D) L = {s ? (0+1) * I no(s) -n1(s) I ? 4
Correct Answer:

Verified
Correct Answer:
Verified
Q11: Grammar that produce more than one Parse
Q12: Consider the following problem x. Given a
Q13: Which of the following problems is undecidable?<br>A)Membership
Q14: Let L denotes the language generated by
Q15: The following grammar G = (N, T,
Q17: If L<sub>1</sub> and L<sub>2</sub> are context free
Q18: Which of the following pairs have DIFFERENT
Q19: Any Language generated by an unrestricted grammar
Q20: Context free grammar is not closed under<br>A)Product
Q21: Following syntax-directed translation scheme is used with