Skip to content
VUBuddy

CS301P Quiz 1 Set 2

Data Structures (Practical) PDF 844 KBUpdated 23 Oct 2026
Quiz CS301P Quiz 1 Set 2 PDF 844 KB
vubuddy.com
Type
Quiz
Course
CS301P Data Structures (Practical)
Size
PDF 844 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 844 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

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?

  1. get()
  2. tail()
  3. start()
  4. back()

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; }

  1. Displaying the values of nodes
  2. Updating the values of nodes
  3. Adding new nodes
  4. Deleting nodes

Correct answer: Displaying the values of nodes

Q3. Nodes in the linked list are accessed in _________ order:

  1. Random
  2. Descending
  3. Sequential
  4. Non-linear

Correct answer: Sequential

Q4. Which of the following is used to navigate from one node to another node in the linked list?

  1. Object field of node
  2. Null pointer
  3. None of the given options
  4. Next part of node

Correct answer: Next part of node

Q5. Which of the following statement declares an array ‘x’ with 6 integers?

  1. int [6] x;
  2. int x = 6;
  3. float x[6];
  4. int x[6];

Correct answer: int x[6];

Generated With VU Toolkit Made with ♥ by Paradoxical

All CS301P files →
CS301P Data Structures (Practical) All CS301P handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.