1.

Prefix expression can be evaluated _________(a) from right to left(b) from left to right(c) from the exact middle(d) from second right elementThis question was posed to me in an interview for job.This is a very interesting question from Trees topic in section Trees of Discrete Mathematics

Answer»

Correct choice is (B) from left to right

The explanation is: Expressions are usually EVALUATED from left to right manner. Prefix expressions follow the normal RULE i.e from left to right. POSTFIX expressions can be evaluated from right to left.



Discussion

No Comment Found

Related InterviewSolutions