To obtain a prefix expression, which of the tree traversals is used?
A. Level-order traversal
B. Pre-order traversal
C. Post-order traversal
D. In-order traversal
Answer:B
To obtain a prefix expression, which of the tree traversals is used?
A. Level-order traversal B. Pre-order traversal C. Post-order traversal D. In-order traversal