Question 14246 – Semaphores
November 28, 2023
Question 10452 – Context-Free-Grammar
November 28, 2023
Question 14246 – Semaphores
November 28, 2023
Question 10452 – Context-Free-Grammar
November 28, 2023

Question 16880 – Context-Free-Grammar

Consider the context-free grammar G below
S → aSb | X
X → aX | Xb | a | b ,
where S and X are non-terminals, and a and b are terminal symbols. The starting non-terminal is S. Which one of the following statements is CORRECT?

Correct Answer: B

A
The language generated by G is (a + b)*
B
The language generated by G is a*(a + b)b*
C
The language generated by G is a*b*(a + b)
D
The language generated by G is not a regular language
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!