Gate CS-2007 Question Paper With Solutions

Q. 76 The following postfix expression with single digit operands in evaluated using a

stack

  8 2 3 ^ / 2 3 * + 5 1 * -

Note that^is the exponentiation operator. The top two elements of the stack after

the first* is evaluated are

(A) 6, 1

(B) 5, 7

(C) 3, 2

(D) 1, 5

Answer: (A)

Explanation:

Gate CS-2007 Question Paper With Solutions

Learn More:   Gate EE-2016-1 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here