- Type
- Final term past paper
- Course
- CS301 Data Structures
- Size
- PDF 977 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 pages 2, 3, 4 of 37. Download the file for all 37 pages.
Q1. Vu-Topper RM (1 marks)
A pair of sets which does not have any ________ element are called disjoint sets
Common
Q2. Vu-Topper RM (1 marks)
Which of the following is NOT true regarding the maze generation?
Remove a randomly chosen wall if the cells it separates are already in the same set. Page 424
Q3. Vu-Topper RM (1 marks)
A table consists of several columns, known as
Fields
Q4. Vu-Topper RM (1 marks)
The scenario “If Ali is brother of Asif and Asif is brother of Uzma then Ali is brother of Uzma” is the example of ___________ property.
Transitive
Q5. Vu-Topper RM (1 marks)
What is the time complexity of binary search with iteration?
O(logn)
Q6. Vu-Topper RM (1 marks)
Which of the following heap method lowers the value of key at position ‘p’ by the amount ‘delta’?
increaseKey(p,delta)
Q7. Vu-Topper RM (1 marks)
Suppose there are a set of fruits and a set of vegetables. Both sets are ______________ sets.
Disjoint
Q8. Vu-Topper RM (1 marks)
The expressionif ( ! heap->isFull() )check
Heap is not full
Q9. Vu-Topper RM (1 marks)
In min heap, if there are 100 elements in a heap and we perform 100 deleteMin operations then we will get the elements in _________.
Ascending order
Q10. Vu-Topper RM (1 marks)
If we want to find median of 50 elements, then after applying buildHeap method, how many times deleteMin method will be called ?
Q11. Vu-Topper RM (1 marks)
There are 100 elements in a heap, if we perform 100 deleteMin operations then we will get ___________ list
Sorted
Q12. Vu-Topper RM (1 marks)
Which of the following is NOT an implementation of Table ADT?
Skip List
Q13. Vu-Topper RM (1 marks)
For a perfect binary tree of height 4. What will be the sum of heights of nodes?
Q14. Vu-Topper RM (1 marks)
If a tree has 20 edges/links, then the total number of nodes in the tree will be :
Q15. Vu-Topper RM (1 marks)
Which of the following properties are satisfied by Equivalence relationship?
Reflexive , Symmetric and Transitive
Q16. Vu-Topper RM (1 marks)
Suppose there are 100 elements in an equivalence class, so initially there will be 100 trees. The collection of these trees is called
Forest
Q17. Vu-Topper RM (1 marks)
For a perfect binary tree of height h, having N nodes, the sum of heights of nodes is _____________.
N-(H+1)
Q18. Vu-Topper RM (1 marks)
Heap can be used to implement
Related CS301 files
All CS301 files →- CS301 Final Term Solved Subjective with References by Moaaz Final term PDF 625 KB
- CS301 Final Term Important Topics by A&I Final term PDF 926 KB
- CS301 Final Term Slides Lectures 19-45 Final term PDF 9.5 MB
- CS301 Final Term Past Papers File 1 Set 2 by Waqar Siddhu Final term PDF 3.6 MB
- CS301 Highlighted Handouts Lectures 1-45 Highlighted PDF 12 MB
- CS301 Short Notes Lectures 1-22 Quiz PDF 626 KB
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.