Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT"DIPLOMA LEVEL: PROGRAMMING DATA STRUCTURES AND ALGORITHMS USING PYTHON"
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
Solution
Solution
A BFS traversal from a source node s in an unweighted, connected and undirected graph results in a BFS tree T. The tree T is a data structure for computing___
Solution
Solution
Solution
Which one of the following algorithm design techniques is used in Huffman Encoding algorithm ?
Solution
Let G = (V, E) be an undirected graph having distinct positive edge weights. Let V be partitioned into two non-empty sets X and Y. Let e = (s, t) be the minimum cost edge, with s belonging to X and t belonging to Y. Which of the following statement(s) is/are true?
1. There must be only one unique spanning tree with minimum weight for G.
2. The edge e must definitely belong to minimum cost spanning tree of G
1. There must be only one unique spanning tree with minimum weight for G.
2. The edge e must definitely belong to minimum cost spanning tree of G
Solution
Consider the following binary search tree. The letters indicate the names of the nodes, not the values that are stored.

Which of the following nodes is 3rdsmallest node (in terms of value) in the given binary search tree?
Which of the following nodes is 3rdsmallest node (in terms of value) in the given binary search tree?
Solution
The maximum and the minimum number of nodes possible in a binary search tree of height5 are___. Consider that the height of the empty tree is 0.
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Which of the following options represents the fail function (or prefix function) for pattern 'ABABAABA'in the Knuth-Morris-Pratt (KMP) algorithm?
Solution
Solution
Which of the following statements is/are true about adjacency list representation and adjacency matrix representation of a graph?
Solution
Which of the following statements istrueabout Dijkstra's algorithm to find the shortest path?
Solution
Which of the following is/aretrueabout AVL Tree? Assume that the height of the empty tree is 0.
Solution
Which of the following statements is/aretrueabout Huffman coding algorithm?
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Shape
Thickness [ / ]
3
All colors