Suppose implementation supports an instruction REVERSE, which reverses the order of elements on the stack, in addition to the PUSH and POP instructions. Which one of the following statements is TRUE with respect to this modified stack?

🎲 Try a Random Question  |  Total Questions in Quiz: 167  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Data Structure Practice Test — practice the complete quiz, review flashcards, or try a random question.

In computer science, a data structure is a data organization, management, and storage format that is usually chosen for efficient access to data. More precisely, a data structure is a collection of data values, the relationships among them, and the functions or operations that can be applied to the data, i.e., it is an algebraic structure about data. (Source: Wikipedia)

Important Data Structures are:
Linked List
Binary Tree
Hash Table
Stacks
Queues
Heaps


Suppose implementation supports an instruction REVERSE, which reverses the order of elements on the stack, in addition to the PUSH and POP instructions. Which one of the following statements is TRUE with respect to this modified stack?