English

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

Advertisements
Advertisements

Question

Evaluation the following Postfix Expression:

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

Evaluate
Advertisements

Solution

Stack evaluation:

  • Not False = True
  • True And True = True
  • True Or False = 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. c) | Page 123
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×