- Type
- Quiz
- Course
- CS301 Data Structures
- Size
- PDF 857 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 1, 2 of 2. Download the file for all 2 pages.
Q1. isEmpty() method of stack class will return true when:
Correct answer: Stack is empty
Q2. Consider we have performed the following operations on a stack of size 5. Push(10); Push(20); Push(30); Pop(); Pop(); Push(40); Push(50); Pop(); After the completion of all operations, the number of element present on stack are _____.
Correct answer: 2
Q3. The _______ method of list will position the currentNode and lastCurrentNode at the start of the list.
Correct answer: Start
Q4. The expression DE+H* is called_______
Correct answer: Postfix expression
Q5. Head node pointer always points to the ______________ of the linked list?
Correct answer: first node
Q6. “set()” method of list class is used to:
Correct answer: Set the value of object
Q7. Which operation of queue data structure is used to get front element from the queue and then remove it from the queue?
Correct answer: dequeue()
Q8. Consider the linked list implementation of a stack. Which of the following node is considered as Top of the stack?
Correct answer: First node
Q9. In the calling function, after the execution of the function called, the program continues its execution from the _______after the function call.
Correct answer: Next line
Q10. The next field in the last node in a singly-linked list is set to_______.
Correct answer: NULL
Related CS301 files
All CS301 files →Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.