- Type
- Quiz
- Course
- CS301 Data Structures
- Size
- PDF 1.2 MB
- 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 9. Download the file for all 9 pages.
Q1. Consider a min heap, represented by the following array:
Correct answer: 3,4,6,7,5
e. 4,5,6,7✺➳
©ARTIST©
f. 4,6,7,5
Q2. While building Huffman encoding tree the new node that is the result of joining two nodes has the frequency.
©ARTIST©
©ARTIST©©ARTIST©c. Equal to the greater frequency
d. Equal to the difference of the two frequencies
Q3. In Huffman encoding, codes are sent to the receiver in ___________ format.
©ARTIST©
d. ASCII
Q4. In double left-right rotation in the AVL tree, the single ____ rotation is carried at first, followed by single _____rotation.
©ARTIST©
d. d right, right
Q5. A binary tree with 45 internal nodes has _______links to external nodes.
©ARTIST©
d. d . 46
Q6. In which of the following tree, parent node has key greater than or equal to its both children?
©ARTIST©
Q7. Suppose we are building the AVL tree using nodes 13, 7 and 9 then which type of rotation at root node will balance the tree?
©ARTIST©
Q8. If there are 56 internal nodes in a binary tree then how many external nodes this binary tree will have?
©ARTIST©
b. 54 c. 55 d. 56
Q9. The worst case of building a heap of N keys is _______ .
©ARTIST©
c. N^2 d. 2^N 10.
Consider a max heap, represented by the following array:
a. 40,30,20,10,15,16,17,8,4 b. After inserting a node with value 35. Which of the following is the updated max heap? c. 40,35,20,10,30,16,17,8,4,15 d. 40,30,20,10,15,16,17,8,4,35✺➳
©ARTIST©
e. 40,35,20,10,15,16,17,8,4,30 f. 40,30,20,10,35,16,17,8,4,15
11.
Which of the following statement is correct?
THREAD (in actual sense, a link) to its POSTORDER
Related CS301 files
All CS301 files →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.