ISRO Computer Science (CSE) 2026 - Question 44

All ISRO Computer Science (CSE) papers | ISRO Computer Science (CSE) 2026

Topic: Data Structures / Stacks

When evaluating the postfix arithmetic expression 9 6 2 - * 3 2 4 / + , what value is at the top of the stack after the * operator is processed?

  • A. 4
  • B. 9
  • C. 36
  • D. 14

Answer: C. 36

Explanation: Using stack evaluation for postfix: 1) Push 9. 2) Push 6. 3) Push 2. Stack is now [9, 6, 2]. 4) Read '-', pop 2 and 6. Compute $6 - 2 = 4$. Push 4. Stack is now [9, 4]. 5) Read '*', pop 4 and 9. Compute $9 \times 4 = 36$. Push 36. At this point, after the '*' is processed, the only value (and thus the top value) on the stack is 36.

| | All questions of ISRO Computer Science (CSE) 2026