+1 vote
in Data Structures & Algorithms I by (88.2k points)
The leaves of an expression tree always contain?

(a) operators

(b) operands

(c) null

(d) expression

My doubt stems from Trees topic in division Trees of Data Structures & Algorithms I

This question was posed to me in exam.

1 Answer

+1 vote
by (672k points)
selected by
Best answer
Correct answer is (b) operands

The best I can explain: The leaves of an expression tree always contain the result of a given expression (i.e.) operands.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.