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
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Consider a complete binary tree withnnodes, where the left and the right subtrees of the root are min heaps. The upper bound to convert the tree to a min heap by an efficient algorithm is _______.
Solution
Which of the following statement(s) is/are correct about the traversals in abinary search tree?
1. The root of the tree is always the first element of theinordertraversal.
2. The root of the tree is always the last element of thepostordertraversal.
1. The root of the tree is always the first element of theinordertraversal.
2. The root of the tree is always the last element of thepostordertraversal.
Solution
Solution
Solution
Solution
Solution
A popular conference is being held, and there are several types of seats: VIP, Regular, and Economy. Each type of seat has a limited number of available spots. Each attendee has a preference for the type of seat they want, and the total number of attendees is greater than the number of available seats. The goal is to allocate the seats to attendees such that each attendee is assigned to their preferred seat type, and no seat type exceeds its capacity.
How can the given problem of allocating seats to attendees based on their preferences and seat type capacities be effectively solved?
How can the given problem of allocating seats to attendees based on their preferences and seat type capacities be effectively solved?
Solution
Consider the following statements.
1. If an NP-hard problemAis polynomial time reducible to another problemB, thenBbelongs to the class NP.
2. If an NP-hard problemAis polynomial time reducible to another problemB, thenBis NP- complete.
Which of the following option is correct?
1. If an NP-hard problemAis polynomial time reducible to another problemB, thenBbelongs to the class NP.
2. If an NP-hard problemAis polynomial time reducible to another problemB, thenBis NP- complete.
Which of the following option is correct?
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Shape
Thickness [ / ]
3
All colors