Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT"DIPLOMA LEVEL : PROGRAMMING, DATA STRUCTURES AND ALGORITHMS USING PYTHON (COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
Solution
In the context of theFloyd-Warshall algorithm, what does it mean if the distance matrix has a negative value in its diagonal?
Solution
Solution
You have amax-heapwith the following set of elements:
{10, 5, 15, 3, 8, 12}
Which of the following elements is guaranteed to be a child of the element15?
{10, 5, 15, 3, 8, 12}
Which of the following elements is guaranteed to be a child of the element15?
Solution
Consider the following sequence of numbers inserted into an emptyBinary Search Tree(BST): 50, 30, 20, 40, 70, 60, 80, 35
What will be the height of the resulting BST? Consider that the height of empty binary search tree is 0.
What will be the height of the resulting BST? Consider that the height of empty binary search tree is 0.
Solution
Which of the following traversals would visit the nodes of abinary search treein the following order?
10, 5, 3, 8, 15, 12, 20
10, 5, 3, 8, 15, 12, 20
Solution
Apply the divide and conquer strategy to find theclosest pair of pointsin a set. After dividing the set into two halves and recursively finding the closest pairs in each half, what additional step is required?
Solution
Solution
Solution
For a set of symbols with probabilities of occurrence, which of the following statement(s) about theHuffman treeis/are correct?
Solution
Define theslopeof a node as the absolute difference in height between the left subtree and the right subtree of the node. Consider that the height of the empty tree is 0.
Consider the below AVL Tree.

After inserting19in the given AVL tree (before applying rotation), which of the following node's slopes will become greater than 1? Select all that are correct.
Consider the below AVL Tree.
After inserting19in the given AVL tree (before applying rotation), which of the following node's slopes will become greater than 1? Select all that are correct.
Solution
Consider the following statements and choose the correct ones.
Solution
Solution
Consider a binary tree with 21 nodes. The maximum number of leaves possible in tree is ___________.
Solution
Solution
Solution
Solution
Shape
Thickness [ / ]
3
All colors