a) + b) $ c) ^ d) & Answer: c Explanation: ...
View Question
What would be the Prefix notation for the given equation?
A+B*C^D
What would be the Prefix notation for the given equation? A+B*C^D a) +A*B^CD b) ...
View Question
What would be the Prefix notation for the given equation?
(A*B)+(C*D)
What would be the Prefix notation for the given equation? (A*B)+(C*D) a) +*AB*CD b) *+AB*CD
View Question
What would be the Prefix notation for the given equation?
A+(B*C)
What would be the Prefix notation for the given equation? A+(B*C) a) +A*CB b) ...
View QuestionWhat data structure is used when converting an infix notation to prefix notation?
a) Stack b) Queue c) B-Trees d) Linked-list Answer: a Explanation: ...
View QuestionFor the given expression tree, write the correct postfix expression.
For the given expression tree, write the correct postfix expression. a) abc*+ b) abc+* c) ab+c* d) a+bc* Answer: a Explanation: ...
View Question
Evaluate and write the result for the following postfix expression
abc*+de*f+g*+ where a=1, b=2, c=3, d=4, e=5, f=6, g=2.
Evaluate and write the result for the following postfix expression abc*+de*f+g*+ where a=1, b=2, c=3, d=4, e=5, f=6, ...
View QuestionEvaluate the postfix expression ab + cd/- where a=5, b=4, c=9, d=3.
a) 23 b) 15 c) 6 d) 10 Answer: c Explanation: The infix expression ...
View Question
Consider the stack
| 5 |
| 4 |
| 3 |
| 2 |.
At this point, ‘*’ is encountered. What has to be done?
Consider the stack | 5 | | 4 | | 3 | | 2 |. At this point, ...
View Question
What is the result of the following postfix expression?
ab*cd*+ where a=2,b=2,c=3,d=4.
What is the result of the following postfix expression? ab*cd*+ where a=2,b=2,c=3,d=4. a) 16 b) 12 c) 14
View Question