Data Structures · Question 9 · Medium

What is the value of the postfix expression 6 2 3 + - 3 8 2 / + * ?

  1. 1
  2. 49
  3. 5
  4. 7
Answer and explanation

Answer: D. 7

Explanation: 2 3 + gives 5, and 6 5 - gives 1. Then 8 2 / gives 4, 3 4 + gives 7, and finally 1 7 * gives 7.

Previous: A binary tree has height 4, where height is the number of edges on the longest… · Next: A circular queue is implemented in an array of size n using front and rear…

Practise data structures

Try a fresh set of data structures questions with an explanation after every answer, free and without signing up: Data Structures practice. Or sit a full placement mock test.

More data structures questions

More technical & programming practice

Algorithms · Object-Oriented Programming · DBMS · SQL · Operating Systems · Computer Networks · Software Engineering · Cloud & DevOps

LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge