Skip to content
VUBuddy

CS301 Midterm MCQs by VU Topper RM

Data Structures PDF 693 KBUpdated 23 Oct 2026
Midterm past paper CS301 Midterm MCQs by VU Topper RM PDF 693 KB
vubuddy.com
Type
Midterm past paper
Course
CS301 Data Structures
Size
PDF 693 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 693 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 2, 3, 4 of 30. Download the file for all 30 pages.

Q1. Vu-Topper RM (1 marks)

Which one is the correct function call for the following function of calculating cube?

  1. cube(num)
  2. cube(*num)
  3. cube(&num)
  4. cube(&&num)

Correct answer: cube(num)

Q2. Vu-Topper RM (1 marks)

In a complete binary tree, for 25000 nodes the depth will be-----

A. 14

B. 13 C. 12 D. 11

Q3. Vu-Topper RM (1 marks)

In level-order traversal for Binary Search Tree, __________ data structure is used.

A. Queue

B. Stack C. Tree D. Heap

Q4. Vu-Topper RM (1 marks)

If both left and right nodes of a node are NULL then this type of node is called a ------node.

A. Leaf

B. Node C. Both D. None of these

Q5. Vu-Topper RM (1 marks)

For searching a particular number in Binary Search Tree (if it is not present), the maximum number of comparisons will be _______ comparison(s) at each level.

A. 1

B. 2 C. 3 D. 4

Q6. Vu-Topper RM (1 marks)

In a complete binary tree the number of nodes at level 5 are

A. 32

B. 30 C. 23 D. 40

Q7. Vu-Topper RM (1 marks)

While implementing non-recursive traversal for Binary Search Tree, we need to implement _________.

A. Stack

B. Tree C. Heap D. Pointer

Q8. Vu-Topper RM (1 marks)

------- is used for Reference variables in C++.

A. &

C. # D. *

Q9. Vu-Topper RM (1 marks)

Left, right, info, and parent are the operations of _________ data structure.

A. Tree

B. Heap C. Stack D. Pointer

Q10. Vu-Topper RM (1 marks)

If a function has recursive call as the last statement, it is known as ___. A. Local B. Last C. Function

D. Tail recursive

Q11. Vu-Topper RM (1 marks)

The abstract data type refers to the basic mathematical concept that defines the A. Variable B. Functions C. Pointer

D. Data type

Q12. Vu-Topper RM (1 marks)

When a function calls another function, the parameters and return address of the calling function are put in ________.

A. Stack

B. Tree C. Heap D. Pointer

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.