All Courses
Home
Computer Science 1
Theory of Computation and Compilers
The reduced grammar equivalent to the grammar, whose production rules are given below, is: S → AB|CA B → BC|AB A → a C → a B | b
Question
The reduced grammar equivalent to the grammar, whose production rules are given below, is:
S → AB|CA
B → BC|AB
A → a
C → a B | b
A.
S → CA, A → a, C → b
B.
S → CA |B, B → BC | B, A →a, C → aB | b
C.
S → CA|B, B → BC, A → a, C → aB |b
D.
S → AB | AC, B → BC | BA, A → a, C → aB | b
Solution
Correct option is A
Free Tests
Free
Must Attempt
Basics of Education: Pedagogy, Andragogy, and Hutagogy
English
10 Questions
20 Marks
12 Mins
Attempt now
English
Free
Must Attempt
UGC NET Paper 1 Mock Test 1
English
50 Questions
100 Marks
60 Mins
Attempt now
English
Free
Must Attempt
Basics of Education: Pedagogy, Andragogy, and Hutagogy
English
10 Questions
20 Marks
12 Mins
Attempt now
English
View More
Similar Questions
1)
Any string of terminals that can be generated by the following context free grammar (where S is start nonterminal symbol)
S → XY
X → 0X|1X|0
Y → Y0|Y1|0
2)
Given below are two statements:
Statement I:
The family of context-free languages is closed under homomorphism.
Statement II:
The family of context-free languages is closed under reversal.
In light of the above statements, choose the correct answer from the options given below:
3)
Match List – I with List – II:
Choose the correct answer from the options given below:
4)
Let:
L₁ = {0ⁿ1ⁿ0ᵐ | n ≥ 1, m ≥ 1}
L₂ = {0ⁿ1ᵐ0ᵐ | n ≥ 1, m ≥ 1}
L₃ = {0ⁿ1ⁿ0ⁿ | n ≥ 1}
Which of the following are correct statements?
A. L₃ = L₁ ∩ L₂
B. L₁ and L₂ are context-free languages, but L₃ is not a context-free language.
C. L₁ and L₂ are not context-free languages, but L₃ is a context-free language.
D. L₁ is a subset of L₃
Choose the correct answer from the options below.
5)
What language is accepted by the pushdown automaton?
6)
Consider the following statements about Context Free Language (CFL):
Statement I:
CFL is closed under homomorphism.
Statement II:
CFL is closed under complement.
Which of the following is correct?
7)
Consider the grammar:
S → SbS | a
Consider the following statements:
The string abababa has
(A) two parse trees
(B) two left-most derivations
(C) two right-most derivations
Which of the following is correct?
8)
The reduced grammar equivalent to the grammar, whose production rules are given below, is:
S → AB|CA
B → BC|AB
A → a
C → a B | b
9)
Arrange the following Language Classes in ascending order according to their expressive power, as defined by Chomsky hierarchy:
A. Context-free languages
B. Context-sensitive languages
C. Regular languages
D. Unrestricted Grammars
Choose the correct answer from the options given below:
10)
Any string of terminals that can be generated by the following context free grammar (where S is start nonterminal symbol)
S → XY
X → 0X|1X|0
Y → Y0|Y1|0
View More
Access ‘UGC NET Computer Science’ Mock Tests with
60000+ Mocks and Previous Year Papers
Unlimited Re-Attempts
Personalised Report Card
500% Refund on Final Selection
Largest Community
BUY NOW
415k+ students have already unlocked exclusive benefits with Test Prime!
Suggested Test Series
UGC NET Paper 1 Mock Test June 2026
UGC NET Paper 1 Mock Test June 2026
296 Tests
+ 2 Free Tests
UGC NET English (Paper I & II) June 2026 Mock Test
UGC NET English (Paper I & II) June 2026 Mock Test
406 Tests
+ 2 Free Tests
UGC NET Political Science (Paper I & II) June 2026 Mock Test
UGC NET Political Science (Paper I & II) June 2026 Mock Test
395 Tests
+ 2 Free Tests
UGC NET History (Paper I & II) June 2026 Mock Test
UGC NET History (Paper I & II) June 2026 Mock Test
350 Tests
+ 2 Free Tests
UGC NET Hindi (Paper I & II) June 2026 Mock Test
UGC NET Hindi (Paper I & II) June 2026 Mock Test
376 Tests
+ 2 Free Tests
View More
Access ‘UGC NET Computer Science’ Mock Tests with
60000+ Mocks and Previous Year Papers
Unlimited Re-Attempts
Personalised Report Card
500% Refund on Final Selection
Largest Community
BUY NOW
415k+ students have already unlocked exclusive benefits with Test Prime!
Suggested Test Series
UGC NET Paper 1 Mock Test June 2026
UGC NET Paper 1 Mock Test June 2026
296 Tests
+ 2 Free Tests
UGC NET English (Paper I & II) June 2026 Mock Test
UGC NET English (Paper I & II) June 2026 Mock Test
406 Tests
+ 2 Free Tests
UGC NET Political Science (Paper I & II) June 2026 Mock Test
UGC NET Political Science (Paper I & II) June 2026 Mock Test
395 Tests
+ 2 Free Tests
UGC NET History (Paper I & II) June 2026 Mock Test
UGC NET History (Paper I & II) June 2026 Mock Test
350 Tests
+ 2 Free Tests
UGC NET Hindi (Paper I & II) June 2026 Mock Test
UGC NET Hindi (Paper I & II) June 2026 Mock Test
376 Tests
+ 2 Free Tests
View More
Our Plans
Months
BUY NOW
Chat With Us