Question
How many terminals in the below CFG E E + T | T T T x F | F F (E) | a (2 Points)
How many terminals in the below CFG E E + T | T T T x F | F F (E) | a
(2 Points)
1
None
3
4
2
2.Minimum string generated by the below CFG E E + T | T T T x F | F F (E) | a
(2 Points)
a+a
(a)
None
a x a
3.Consider the grammar S XSX | R R aTb | bTa T XTX | X | X a | b which string can't be generated by the given grammar?
(2 Points)
None
abb
aab
ab
aba
4.How many rules/productions in the below CFG S XSX | R R aTb | bTa T XTX | X | X a | b
(1 Point)
9
None
7
10
8
5.Minimum string generated by the below CFG S XSX | R R aTb | bTa T XTX | X | X a | b
(2 Points)
ab
a
None
b
6.CFL is the subset of the RL.
(1 Point)
False
True
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started