UGC NET Paper 2 (Computer Science)Hard

The value of the postfix expression 8 2 3 ^ / 2 3 * + 5 1 * - is:

  1. A. 2
  2. B. 5
  3. C. 7
  4. D. 14

Correct answer: A. 2

2^3 = 8, 8/8 = 1, 2*3 = 6, 1+6 = 7, 5*1 = 5, 7-5 = 2.

More UGC NET Computer Science and Applications questions

Exams that ask this topic