What is the result of the given postfix expression? abc*+ where a=1, b=2, c=3. a) 4
View QuestionWhich of the following statement is incorrect?
a) Postfix operators use value to their right b) Postfix operators use value ...
View QuestionWhile evaluating a postfix expression, when an operator is encountered, what is the correct operation to be performed?
a) push it directly on to the stack b) pop 2 operands, evaluate them and push ...
View QuestionWhich of the following is not an application of stack?
a) evaluation of postfix expression b) conversion of infix to postfix expression
View QuestionWhich of these operators have the highest order of precedence?
a) ‘(‘ and ‘)’ b) ‘*’ and ‘/’ c) ‘~’ and ‘^’ d) ...
View QuestionIn Postfix expressions, the operators come after the operands.
a) true b) false Answer: a Explanation: In postfix expressions, the operators follow ...
View QuestionWhat is the time complexity of evaluation of postfix expression algorithm?
a) O (N) b) O (N log N) c) O (N2) d) ...
View QuestionReverse Polish Notation is the reverse of a Polish Notation.
a) true b) false Answer: b Explanation: Reverse Polish Notation is not the reverse ...
View QuestionWhich of the following is an example for a postfix expression?
a) a*b(c+d) b) abc*+de-+ c) +ab d) a+b-c Answer: b Explanation: abc*+de-+ ...
View QuestionWhat is the other name for a postfix expression?
a) Normal polish Notation b) Reverse polish Notation c) Warsaw notation d) Infix notation Answer: b Explanation: ...
View Question