CS301 Final Term Quiz 4 July 2023 by Miss Mehwish
- Type
- Final term past paper
- Course
- CS301 Data Structures
- Size
- PDF 538 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 1, 2, 3 of 4. Download the file for all 4 pages.
We also provide Past papers for Mids. and Finals Cross Check your answers befo re submitting directly from the file. We are not responsible for 100% correction as human error exists
Q1. If whole data is given to construct the min heap, then which of the following is true? Options:
Correct option: d) BuildHeap method is appropriate for construction
Q2. In a perfect binary tree of height h, the total number of nodes N is ___________. Options:
Correct option: a) 2h - 1
Q3. Median is ___________.
Correct option: d) K = N / 2
Q4. 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.
Correct option: b) Transitive
- Given the values are the array representation of a heap: 12, 23, 26, 31, 34, 44, 56, 64, 78,
Q100. What is the 5th smallest element in the given heap?
Correct option: c) 34
Q6. In a min heap, if there are 100 elements in a heap and we perform 100 deleteMin operations, then we will get the elements in _________.
Correct option: b) Ascending order
Q7. The main reason for using a heap in a priority queue is ___________. Options:
Correct option: a) Improve performance
Q8. In the heap's percolateDown method, why do we start our iterations from n/2 instead of n? Options:
Related CS301 files
All CS301 files →- CS301 Final Term Quiz 4 File 2 July 2023 by Miss Mehwish Final term PDF 541 KB
- CS301 Final Term Quiz 4 July 2023 Set 2 by Miss Mehwish Final term PDF 538 KB
- CS301 Final Term Quiz 3 July 2023 by Miss Mehwish Final term PDF 537 KB
- CS301 Final Term Sample Paper Fall 2022 Final term PDF 110 KB
- CS301 Highlighted Handouts by VU Topper RM Highlighted PDF 9 MB
- CS301 Quiz 4 by VU Topper RM Quiz PDF 1.1 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.