- Type
- Midterm past paper
- Course
- CS301 Data Structures
- Size
- PDF 1.5 MB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extension for 30 a day.
Preview text
Text from pages 1, 2, 3 of 30. Download the file for all 30 pages.
MID TERM MEGA FILE
Which one of the following statement is NOT correct .
In linked list the elements may locate at far positions in the memory
next to it
Each operator in a postfix expression refers to the previous ________ operand(s).
Correct answer: Two
Which one of the following calling methods does not change the original value of the argument in the calling function?
Correct answer: Call by passing the value of the argument
A tree is an AVL tree if
Correct answer: 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 statement changes currentNode so that it refers to the next node?
Correct answer: currentNode = currentNode->nextNode;
queue
Correct answer: True
Which one is a self- referential data type?
Correct answer: Link list
Each node in doubly link list has,
Correct answer: 2 pointers
I have implemented the queue with a linked list, keeping track of a front pointer and a rear pointer. Which of these pointers will change during an insertion into an EMPTY queue?
Correct answer: Only rear pointer changes.
- Consider the following tree.
How many of the nodes have at least one sibling?
Correct answer: 5
The nodes with no successor are called _________
A binary search tree should have minimum of ________ node/s at each level,
Correct answer: One
- Consider the following statements.
(i) A binary tree can contain at least 2L Nodes at level L. (ii) A complete binary tree of depth d is a binary tree that contains 2L Nodes at each level L between 0 and d, both inclusive. (iii) The total number of nodes (Tn ) in a complete binary tree of depth d is 2 d+1 - 1 . (iv) The height of the complete binary tree can be written as h = log 2 (Tn+1)-1 where Tn is Total number of Nodes.
Which one of the following is correct in respect of the above statements regarding the Binary trees?
Correct answer: (ii), (iii) and (iv) only
“+” is a _________operator.
Correct answer: Binary
queue
Correct answer: True
The data of the problem is of 2GB and the hard disk is of 1GB capacity, to solve this problem we should
Correct answer: Increase the hard disk space
Consider the function X as under
int X (int& Value)
return Value;
Related CS301 files
All CS301 files →- CS301 Midterm Solved Quiz 1 and 2 Fall 2015 Midterm DOCX 2.2 MB
- CS301 Midterm Notes Set 2 Midterm PDF 1.1 MB
- CS301 Midterm Mega File 1 Midterm PDF 675 KB
- CS301 Final Term Solved Papers Mega File (Word) Final term DOC 316 KB
- CS301 Highlighted Handouts by Qalb-e-Momin Highlighted PDF 7.1 MB
- CS301 Quiz 1 Lectures 1-8 Set 2 Quiz PDF 2.7 MB
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.