Skip to content
VUBuddy

CS301 Midterm Past Paper Set 2

Data Structures PDF 128 KBUpdated 23 Oct 2026
Midterm past paper CS301 Midterm Past Paper Set 2 PDF 128 KB
vubuddy.com
Type
Midterm past paper
Course
CS301 Data Structures
Size
PDF 128 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 128 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 pages 1, 2, 3 of 10. Download the file for all 10 pages.

Studocu is not sponsored or endorsed by any college or university

Cs301 midterm paper 1

Data Structures (Virtual University of Pakistan)

Studocu is not sponsored or endorsed by any college or university

Cs301 midterm paper 1

Data Structures (Virtual University of Pakistan)

IDTERM EXAMINATION

Spring 2010 CS301Data Structures

A subscript of an array may be an integer or an integer expression.

  1. True
  2. False

Doubly Linked List always has one NULL pointer.

  1. True
  2. False

In which of the traversal method, the recursive calls can be used to traverse a binary tree

  1. In preorder traversal only
  2. In inorder traversal only
  3. In postorder traversal only
  4. All of the given options

A tree is an AVL tree if

  1. Any one node fulfills the AVL condition
  2. At least half of the nodes fulfill the AVL condition
  3. All the nodes fulfill the AVL condition
  4. None of the given options

Suppose currentNode refers to a node in a linked list (using the Node class with member variables called data and nextNode). What boolean expression will be true when cursor refers to the tail node of the list?

  1. (currentNode == null)
  2. (currentNode->nextNode == null)
  3. (nextNode.data == null)
  4. (currentNode.data == 0.0)

Q6. ( M a r k s: 1 ) - Please choose one

Suppose that the class declaration of SomeClass includes the following function prototype. bool LessThan( SomeClass anotherObject );

Which of the following tests in the client code correctly compares two class objects alpha and beta?

  1. if (alpha < beta)
  2. if (alpha. LessThan(beta))
  3. if (LessThan(alpha, beta))
  4. if (LessThan(alpha).beta)
All CS301 files →
CS301 Data Structures All CS301 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.