aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Test 1 - Programming and Data Structure | Computer Science
  • The following postfix expression with single digit operan...
Multiple choice

The following postfix expression with single digit operands is evaluated using a stack: 8 2 3 $\land$/ 2 3 * + 5 1 * -

Note that $\land$ is the exponentiation operator. The top two elements of the stack after the first * is evaluated are:

  1. 6, 1

  2. 5, 7

  3. 3, 2

  4. 1, 5

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Keep practicing — related questions

  • Assume that the operators +, -, x are left associative and $\land$ is right associative .The order of prece...
  • Which of the following applications of stack is an expression in which an operator follows the two operands?
  • What is the result of the following postfix e 6 3 3 + - 3 8 2 / + + 2 $ 3 + expression?
  • What will be the value of the postfix expression 10, 5, 1, +, +, 4, /?
  • The expression (a*b)*C op….. (where ‘OP’ is one of ‘t’, ‘*’ and ‘$\uparrow$’ is exponentiation) can be eval...
  • Which of the following expressions is one where operators are placed after the operands and it is also call...
  • Which data structures are used to evaluate a postfix expression?
  • What is the value of the postfix expression 854*+63/-?
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy