

MCQOPTIONS
Saved Bookmarks
This section includes 2 Mcqs, each offering curated multiple-choice questions to sharpen your Data Structure Questions and Answers knowledge and support exam preparation. Choose a topic below to get started.
1. |
Consider these functions: |
A. | push() : push an element into the stack |
B. | pop() : pop the top-of-the-stack element |
C. | top() : returns the item stored in top-of-the-stack-node |
D. | What will be the output after performing these sequence of operations |
Answer» E. | |
2. |
Given below is the Node class to perform basic list operations and a Stack class with a no arg constructor. |
A. | Select from the options the appropriate pop() operation that can be included in the Stack class. Also ‘first’ is the top-of-the-stack. |
Answer» B. | |