Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

ISRO | ISRO CS 2011 | Question 43

  • Last Updated : 14 May, 2018

Which variable does not drive a terminal string in grammar?
S -> AB
A -> a
B -> b
B -> C
(A) A
(B) B
(C) C
(D) S

Answer: (C)

Explanation: C is the useless variable as there is no production rule which replaces C with a terminal. Hence it does not derive any non terminal.

Option (C) is correct.

Quiz of this Question

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!