English

Evaluation the following Postfix Expression: True, False, Not, And, False, True, Or, And

Advertisements
Advertisements

Question

Evaluation the following Postfix Expression:

True, False, Not, And, False, True, Or, And

Evaluate
Advertisements

Solution

Stack evaluation:

  • Not False = True
  • True And True = True
  • False Or True = True
  • True And True = True

Final answer: True

shaalaa.com
  Is there an error in this question or solution?
Chapter 6: Stacks & Queues in list - EXERCISE [Page 123]

APPEARS IN

CBSE Computer Science with Python [English] Class 12
Chapter 6 Stacks & Queues in list
EXERCISE | Q 11. d) | Page 123
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×