1.

If C is A-derivable, C->B is a production, and B ¹ A, then B is(a) nullable(b) Non-derivable(c) A-derivable(d) None of the mentionedThe question was asked during an internship interview.My question is based upon Eliminating Unit Productions topic in chapter Properties of Context Free Languages of Automata Theory

Answer»

Correct ANSWER is (C) A-derivable

Easiest explanation: If A-> B is a production, B is called A- derivable.

If C is A-derivable, C->B is a production, and B ¹ A, then B is A -derivable.

No other VARIABLES are A-derivable.



Discussion

No Comment Found

Related InterviewSolutions