Question 17
Leaves the stack S unchanged
Reverses the order of elements in the stack S
Swaps the elements of the top and bottom positions in stack S, keeping the other elements in between in the same order
Empties the stack S
Leaves the stack S unchanged
Reverses the order of elements in the stack S
Swaps the elements of the top and bottom positions in stack S, keeping the other elements in between in the same order
Empties the stack S
Correct answer
Leaves the stack S unchanged
Question 17 of 30 in the IIT Madras BS Programming, Data Structures and Algorithms using Python (PDSA) End Term paper sat on 3 Apr 2022, in the January 2022 term (IIT M FOUNDATION DIPLOMA ENDTERM FN1 3 Apr 2022). It carries 4 marks.