CS301P Final Term MCQs by Miss Mehwish
- Type
- Final term past paper
- Course
- CS301P Data Structures (Practical)
- Size
- PDF 1.9 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 1, 2, 3 of 37. Download the file for all 37 pages.
- If the data is given in sorted order, the tree generated will be similar to __________. Queue
Stack [✔] Heap
- If you create a BST with data that is sorted in an ascending or descending order, it will be similar to:
Complete Binary Tree AVL tree Strictly Binary Tree
Q3. Which type of rotation can balance the following AVL tree?
(Tree: 15 -> 20 -> 18)
Q4. Which type of rotation can balance the following AVL tree?
(Tree: 11 -> 16 -> 12)
Q5. Which of the following function prototype is declaring the function as constant?
Q6. Which of the following function is returning a const value?
- Choose the correct option that why the following tree is not an AVL tree. (Tree: 2 -> 4 -> 8 -> 11 -> 13)
- In the given BST, the balance factor of the root node is:
-1
[✔] 1 -2
Q9. What will be the height of an empty AVL tree?
-1 [✔] 0
- The balance of a node in a binary search tree is defined as the __________.
[✔] height of its left subtree - height of its right subtree height of its right subtree - height of root node height of its left subtree - height of its leaf nodes height of its right subtree + height of its left subtree
- The balance of a node in a binary search tree is defined as the:
* height of its right subtree + height of its left subtree * height of its left subtree - height of its leaf nodes * height of its right subtree - height of root node * ✓ height of its left subtree - height of its right subtree
Q2. What will be the height of an empty AVL tree?
* ✓ -1 * 0 * 1
Related CS301P files
All CS301P files →- CS301P Final Term Quiz 9 File 2 July 2023 by Miss Mehwish Final term PDF 539 KB
- CS301P Final Term Graded Quiz 4 Final term PDF 1.2 MB
- CS301P Final Term Quiz by VU Sparky Final term PDF 4.7 MB
- CS301P Final Term Graded Quiz 3 by Wasi Final term PDF 769 KB
- CS301P Final Term Graded 3 Quiz 8 July 2023 by Miss Mehwish Final term PDF 538 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.