45) Following sequence of operations is performed on a stack push(1),push(2),pop, push(1),push(2)pop,pop,pop,push(2),pop.The sequence of poped out values are
Answer is:
2,2,1,1,2
Related Data structures and Algorithms MCQ with Answers
Answer is:
m x (j-1)+i
Answer is:
Allocate resources(like CPU)by the operating system
Explanation:
Stack cannot be used to allocate resources(like CPU)by the operating system.