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
Which of the following statements is/are true?
I. Given a graph where all edges have positive weights, the shortest path produced by Dijkstra's and Bellman Ford algorithm may be different, but the path weight would be the same.
II. Given a weighted graph where the weights of all edges are unique, there is always a unique shortest path from a source to a destination in such a graph.
I. Given a graph where all edges have positive weights, the shortest path produced by Dijkstra's and Bellman Ford algorithm may be different, but the path weight would be the same.
II. Given a weighted graph where the weights of all edges are unique, there is always a unique shortest path from a source to a destination in such a graph.
Solution
Solution
Solution
Consider amax-heapwith 37 distinct elements implemented using array A with index 0 to 36. The smallest element be always situated at any position in between ___.
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Consider the following 4 items (one unit for each) with their weights and value.

Solution
A networking company uses Huffman coding compression technique to encode the message before transmitting it over the network. An entire message is created using characters from the set S = {A, B, C, D, E, F}. The probability of occurrence of each character is given in the table below.

Solution
Solution
Shape
Thickness [ / ]
3
All colors