- Type
- Quiz
- Course
- CS301P Data Structures (Practical)
- Size
- PDF 844 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 page 1 of 1. Download the file for all 1 page.
CS301P - Quiz No.1
Date: 24 April 2026
Q1. Which method of Node class returns the value of node in a Linked list?
Correct answer: get()
Q2. What does the following method do for a given linked list class? void traverse(List list) { Node* savedCurrentNode = list.currentNode; list.currentNode = list.headNode; for(int i = 1; list.next(); i++) {cout << "\n Element " << i << " " << list.get(); } list. currentNode = savedCurrentNode; }
Correct answer: Displaying the values of nodes
Q3. Nodes in the linked list are accessed in _________ order:
Correct answer: Sequential
Q4. Which of the following is used to navigate from one node to another node in the linked list?
Correct answer: Next part of node
Q5. Which of the following statement declares an array ‘x’ with 6 integers?
Correct answer: int x[6];
Generated With VU Toolkit Made with ♥ by Paradoxical
Related CS301P files
All CS301P 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.