Bsc CSIT Semester 3 – Data Structure and Algorithms – Unit 2: Stack (4 Hrs.)
Comprehensive questions and detailed answers for Unit 2: Stack (4 Hrs.). Perfect for exam preparation and concept clarity.
Explain push and pop operations of stack. What are different applications of stack?
Convert the infix expression A+(((B-C)*(D-E)+F)/G)$(H-I) into post expression using stack.
How recursive algorithm uses stack to store intermediate results? Illustrate with an example. Convert the infix expression A+B-(CD/E+F)-GH into postfix expression using stack.
Evaluate the postfix expression 574-*8/4+ using stack.
Evaluate the expression ABCD-x+ using stack where A=5, B=4, C=3 and D=7
What is stack? What are the different applications of stack? Explain stack operations with example.
Explain algorithm for evaluation of postfix expression using stack
Sample Questions
Convert the infix expression A+(((B-C)(D-E)+F)/G)$(H-I) into post expression using stack.
How recursive algorithm uses stack to store intermediate results? Illustrate with an example. Convert the infix expression A+B-(CD/E+F)-GH into postfix expression using stack.
Evaluate the postfix expression 574-8/4+ using stack.
Evaluate the expression ABCD-x+ using stack where A=5, B=4, C=3 and D=7
And more questions available on this page.