Stacks In Data Structures - Study Mode

[#141] What would be the solution to the given prefix notation? - + 1 2 * 3 / 6 2
Correct Answer

(B) -6

[#142] Parentheses are simply ignored in the conversion of infix to postfix expression.
Correct Answer

(B) False

[#143] What is the time complexity for converting decimal to binary numbers?
Correct Answer

(C) O(logn)

[#144] What should be done when an opening parentheses is read in a balancing symbols algorithm?
Correct Answer

(A) push it on to the stack

[#145] What is the value of the postfix expression 2 3 + 4 5 6 - - *
Correct Answer

(D) 25