Homechevron_rightEngineeringchevron_rightComputer Sciencechevron_rightData Structurechevron_rightHeaps

Heaps MCQs

  • 11. Heap exhibits the property of a binary tree?
  • filter_dramaExplanation
    Answer is : A
    None.
  • 12. What is the complexity of adding an element to the heap.
  • filter_dramaExplanation
    Answer is : C
    None.
  • 13. The worst case complexity of deleting any arbitrary node value element from heap is
  • filter_dramaExplanation
    Answer is : A
    None.
  • 14. Heap can be used as ________________
  • filter_dramaExplanation
    Answer is : A
    None.
  • 15. An array consist of n elements. We want to create a heap using the elements. The time complexity of building a heap will be in order of
  • filter_dramaExplanation
    Answer is : B
    None.
  • 16. What is the space complexity of searching in a heap?
  • filter_dramaExplanation
    Answer is : B
    None.
  • 17. What is the best case complexity in builading a heap?
  • filter_dramaExplanation
    Answer is : D
    None.
  • 18. Given an array of element 5,7,9,1,3,10,8,4. Tick all the correct sequences of elements after inserting all the elements in a min-heap.
  • filter_dramaExplanation
    Answer is : A
    None.
  • 19. For construction of a binary heap with property that parent node has value less than child node.In reference to that which line is incorrect. Line indexed from 1.
  • filter_dramaExplanation
    Answer is : B
    None.
  • 20. Choose the correct properties of weak-heap.
  • filter_dramaExplanation
    Answer is : B
    None.
leaderboardLeaderboard
  • Rahul Kumar

    191 Points

  • VIKRAM JEET

    54 Points

  • GEETHIKA CHOWDARY

    53 Points

  • sunita saini

    52 Points

  • Zain

    49 Points