Time Left - 15:00 mins
GATE 2024 Theory of computation Foundation Quiz 89
Attempt now to get your rank among 26 students!
Question 1
Given the following two grammars:
G1: S → AB | aaB
A → a | Aa
B → b
G2: S → aSbS | bSaS | ϵ
Which statement is correct?
Question 2
What is the language recognized by the following regular grammar?
G:
S → aA|bS
A → bB|aS
B → dB|ϵ|aS
Question 3Multiple Correct Options
Consider the following languages:
L1 = {anwan | w ∈ {a, b}*}
L2 = {wxwR | w, x ∈ {a, b}*, |w|,|x|>0}
Note that wR is the reversal of the string w. Which of the following is/are TRUE?
Question 4
Which of the following is both DCFL and regular?
Question 5
Consider the following languages:
L1: = {ai bj ck | i = j, j < k}
L2: = {ai bj ck | (i ≤ j) or (j ≤ i), j = k}
L3: = {am bn cn dm | m ≠ n}
L4: = {ai bj ck | if (i = j) then k is even}
The number of the above languages L1, L2, L3 and L4 are context-free languages is ____.
- 26 attempts
- 0 upvotes
- 0 comments
Jun 8GATE & PSU CS