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)
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)
Solution
Here is a function to return the maximum value in a list of integers. There is a logical error in this function.

Solution
Solution
Solution
The following sequence of stack operations is performed on a Stack:

The sequence of values popped from the Stack is:
The sequence of values popped from the Stack is:
Solution
Solution
You are given a social network with users and their friendships represented as a graph. You want to find the shortest chain of friends between User A and User B. Which of the following algorithm is best suited and efficient for solving this problem?
Solution
Consider the graph given below

Which of the following is the correct topological ordering of the given graph?
Which of the following is the correct topological ordering of the given graph?
Solution
Solution
Solution
Consider the elements71, 65, 84, 69, 66, 81, and 62inserted into empty binary search tree in the same sequence. Which element will be inserted in the lowest level?
Solution
Solution
Solution
Solution
Solution
Solution
Consider a complete binary treeTwith19nodes. The number of leaf nodes inTis ____.
Solution
Solution
Solution
Solution
Solution
Let G be a simple graph with 25 vertices. The size of the maximum independent set of graph G is
15. What is the size of the minimum vertex cover of G?
15. What is the size of the minimum vertex cover of G?
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
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