CS301P Final Term Graded 3 Quiz 8 July 2023 by Miss Mehwish
- Type
- Final term past paper
- Course
- CS301P Data Structures (Practical)
- 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 before submitting directly from the file. We are not responsible for 100% correction as human error exists
Q1. A binary tree will not be considered an AVL tree if the difference between the left and right subtree of each node is not more than:
Correct option: c) 2
Q2. Consider the max heap represented by the following array. Which of the following is the parent of node 14?
Array: 20, 30, 40, 50 a) 20 b) 30 c) 40 d) 50
Correct option: b) 30
Q3. If the tree becomes unbalanced after deleting a node, then we use _________ to rebalance it. Options:
Correct option: a) Rotations
Q4. What is the encoding of the character 'C' in the given Huffman encoding tree? Huffman encoding tree: A4, B5, C3, D2, Ebd
Correct option: c) 01
Q5. How many rotations will be made if a node is inserted as the left child of the node R in the given tree? Tree: R, P, L(Mid), M, I (right)
Correct option: c) 3
Q6. A complete binary tree with a property that the value at each node is at least as small as the values in its children is called as _______.
Correct option: c) Min Heap
Q7. A hole is created which needs to be filled if the element is _________ from the heap. Options:
Correct option: c) Deleted
Q8. Which of the following bit streams represents the string 'cab' in the given Huffman tree? Bit streams: a0, d0, f0, c1, r0, b1
Correct option: a) 1011
Related CS301P files
All CS301P files →- CS301P Final Term Quizzes July 2023 by Sana Sheikh Final term PDF 598 KB
- CS301P Final Term Quiz 9 File 2 July 2023 by Miss Mehwish Final term PDF 539 KB
- CS301P Final Term Quiz 8 July 2023 by Miss Mehwish Final term PDF 531 KB
- CS301P Final Term Quiz 9 July 2023 by Miss Mehwish Final term PDF 745 KB
- CS301P Final Term Quiz 2 by Sana Sheikh Final term PDF 776 KB
- CS301P Quiz 10 by VU Topper RM Quiz PDF 98 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.