1.

What does the other nodes of an expression tree(except leaves) contain?(a) only operands(b) only operators(c) both operands and operators(d) expressionMy question is taken from Trees topic in division Trees of Data Structures & Algorithms II have been asked this question during an interview for a job.

Answer»

Correct CHOICE is (b) only operators

Best EXPLANATION: The nodes other than leaves always contain only operators. There cannot be any OPERAND in those nodes.



Discussion

No Comment Found

Related InterviewSolutions