info@avatto.com
+91-9920808017
26. Given A = (0,1) and L = A*. If R = (0n 1n, n > 0) , then language L ∪ R and R are respectively
regular, regular
not regular, regular
regular, not regular
context free, not regular
Your email address will not be published. Required fields are marked *
Report
Name
Email
Website
Save my name, email, and website in this browser for the next time I comment.
Comment
27. Define for a context free language L ≤ {0 ; 1} init (L) = {u/uv ε L for some v in {0,1}} (in other words, init (L) is the set of prefixes of L) Let L {w/w is noempty and has an equal number of 0’s and 1’s) Then init (L) is
set of all binary strings with unequal number of 0’s and 1’s
set of all binary strings including the null string
set of all binary strings with exactly one more 0’s than the number of 1’s or 1 more than the number of 0’s
none of these
28. If L1 and L2 are context free language and R a regular set, then which one of the languages below is not necessarily a context free language?
L1L2
L1 ∩ L2
L1 ∩ R
L1 ∪ L2
29. Consider a grammar with the following productions S--> aab | bac | aB S --> α S | b S --> α b b | ab Sα --> bdb | b The above grammar is
Context free
regular
context sensitive
LR ( k )
30. What can be said about a regular language L over {a} whose minimal finite state automation has two states?
L must be { an | n is odd}
L must be { an | n is even}
L must be { an | n > 0}
Either L must be {an | n is odd}, or L must be {an | n is even}
Login with Facebook
Login with Google
Forgot your password?
Lost your password? Please enter your email address. You will receive mail with link to set new password.
Back to login