Stacks on Data Structure and Algorithms related Questions and Answers - Page 8

Question 71 : Which data structure can be used suitably to solve the Tower of Hanoi problem?
1. Tree
2. Heap
3. Priority queue
4. Stack
View Answer   Discuss with Members

Question 72 : Parentheses are simply ignored in the conversion of infix to postfix expression.
1. True
2. False
3.
4.
View Answer   Discuss with Members

Question 73 : What is the result of the following postfix expression?
ab*cd*+ where a=2,b=2,c=3,d=4.
1. 16
2. 12
3. 14
4. 10
View Answer   Discuss with Members

Question 74 : Which of the following is valid reverse polish expression?
1. a op b
2. op a b
3. a b op
4. both op a b and a b op
View Answer   Discuss with Members

Question 76 : Out of the following operators (^, *, +, &, $), the one having highest priority is _________
1. +
2. $
3. ^
4. &
View Answer   Discuss with Members

Question 77 : What is the time complexity for converting decimal to binary numbers?
1. O(1)
2. O(n)
3. O(logn)
4. O(nlogn)
View Answer   Discuss with Members


View 71 - 77 of 77 Questions

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter