recategorized by
3,819 views
2 votes
2 votes

The postfix expression AB + CD -* can be evaluated using a

  1. stack
  2. tree
  3. queue
  4. linked list
recategorized by

2 Answers

Best answer
4 votes
4 votes

This is a simple question. The postfix expression can be evaluated using a stack. First the operands are pushed into the stack and the moment a operator is encountered, operands are popped out, operation performed on the operands and the result once again pushed into the stack. This series of activities continue till the entire expression is not evaluated.

 

Hence,Option(A)Stack.

selected by
0 votes
0 votes
It is straight forward Stack is used for postfix evaluation and also for infix to prefix infix to postfix
Answer:

Related questions

3 votes
3 votes
2 answers
1
go_editor asked Jul 5, 2016
22,763 views
To represent hierarchical relationship between elements, which data structure is suitable?DequeuePriorityTreeAll of the above
2 votes
2 votes
2 answers
2
go_editor asked Jul 5, 2016
7,085 views
Which of the following data structure is linear type?StringsListsQueuesAll of the above
2 votes
2 votes
1 answer
3
go_editor asked Jul 5, 2016
4,279 views
The Inorder traversal of the tree will yield a sorted listing of elements of tree inBinary treeBinary search treeHeapsNone of the above
3 votes
3 votes
1 answer
4
go_editor asked Jul 4, 2016
1,337 views
A binary search tree is a binary tree in whichAll items in the left subtree are less than rootAll items in the right subtree are greater than or equal to rootEach subtree...