Stacks In Data Structures - Study Mode

[#136] What would be the Prefix notation and Postfix notation for the given equation? A+B+C
Correct Answer

(A) ++ABC and AB+C+

[#137] Is the given statement ((A+B) + [C-D]] valid with respect to balancing of symbols?
Correct Answer

(B) False

[#138] What would be the Prefix notation for the given equation? A+B*C^D
Correct Answer

(A) +A*B^CD

[#139] What would be the Prefix notation for the given equation? A^B^C^D
Correct Answer

(A) ^^^ABCD

[#140] Consider the stack | 5 | | 4 | | 3 | | 2 |. At this point, '*' is encountered. What has to be done?
Correct Answer

(A) 5*4=20 is pushed into the stack