CS-301 Final Term Exams Preparation Virtual University MCQs With Answers
Question # 1
I have implemented the queue with a circular array. If data is a circular array of CAPACITY elements, and last
is an index into that array, what is the formula for the index after last?
Consider a min heap, represented by the following array:
3,4,6,7,5
After calling the function deleteMin().Which of the following is the updated min heap?
Consider a min heap, represented by the following array:
10,30,20,70,40,50,80,60
After inserting a node with value 31.Which of the following is the updated min heap?
A compound data structure is the data structure which can have multiple data items of same type or of different types,which of the following can be considered compound data structure ?
Let heap stored in an array as H = [50, 40, 37, 32, 28, 22, 36, 13]. In other words, the root of the heap contains
the maximum element. What is the result of deleting 40 from this heap