Skip to content
main-logo
  • +91 637-050-2482
  • santuitreturns@gmail.com
Menu
Menu
  • Home
  • Income Tax
    • Income From Salary
    • Profit or gain from Business/Profession.
    • Capital Gain
    • Income From Other Sources
    • 80C to 80U
    • TDS & TCS
    • ITR FORMS
  • International Taxation
    • Transfer Pricing
    • Non-Resident Taxation
    • Foreign Tax Credit (FTC)
    • Model Tax Convention
    • Base Erosion and Profit Shifting (BEPS)
  • GST
  • Accounting
  • MCQs
    • NEET
    • NEET QUIZ TEST
    • NEET PG MCQ’s
    • NEET PG QUIZ TEST
    • Civil Engineering
    • Mechanical Engineering MCQs
    • CHSL EXAM
      • Logical Reasoning
  • Others
    • Job Tips
  • CA Courses
    • CA Inter/IPCC

TOP 20+ MCQs on Skew Heap Data Structure with Answers

Posted on November 28, 2023

1. ___________ is a self-adjusting version of a leftist heap.

a) Rightist heap
b) Skew heap
c) d-heap
d) Binary heap

View Answer

Answer: b

Explanation: 

 A skew heap is a self-adjusting version of a leftist heap and it is simpler to implement.

2. The worst case running time of all operations in a skew heap is given as?

a) O(N)
b) O(N log N)
c) O(N2)
d) O(M log N)

View Answer

Answer: a

Explanation:

 The worst case running time of all operations in a skew heap is mathematically found to be O(N).

3. What is the amortized cost per operation of a skew heap?

a) O(N)
b) O(N log N)
c) O(N2)
d) O(log N)

View Answer

Answer: d

Explanation:

The amortized cost per operation of a skew heap is O(log N) since the worst case analysis of skew heap is O(N) and splay tree is O(M log N).

4. The relationship of skew heaps to leftist heaps is analogous to that of?

a) Splay tree and AVL tree
b) Red black tree and AVL tree
c) Binary tree and Splay tree
d) Binary tree and Red black treea

View Answer

Answer: a

Explanation:

Splay tree is a self -adjusting version of AVL tree. Similarly, skew heap is a self-adjusting version of leftist heap.

5. What is the fundamental operation performed in skew heaps?

a) intersection
b) difference
c) merging
d) sorting

View Answer

Answer: c

Explanation:

The fundamental operation of skew heaps is merging. Hence, it is similar to that of a leftist heap.

6. What is the time per operation of merging, insertion and deletion operations in a skew heap?

a) O(N)
b) O(log N)
c) O(N log N)
d) O(N2)

View Answer

Answer: b

Explanation:

Skew heaps support merging, insertion and deletion all effectively in O(log N) time per operation.

7. Why would a recursive implementation fail in skew heaps?

a) skew heaps are self adjusting
b) efficiency gets reduced
c) lack of stack space
d) time complexity

View Answer

Answer: c

Explanation:

In skew heaps, a recursive implementation could fail because of lack of stack space even though performance is acceptable.

8. Which of the following is difficult to determine the right path length?

a) Skew heaps
b) Binomial tree
c) Leftist heap
d) d-heap

View Answer

Answer: a

Explanation:

It is an open problem to determine precisely the expected right path length of both leftist and skew heaps and comparatively, the latter is difficult.

 

9. The worst case analysis for a naïve merge is given as?

a) O(N)
b) O( log N)
c) O( N log N)
d) O(N2)

View Answer

Answer: a

Explanation:

The worst-case analysis for the naïve merge is an insertion in a right heavy tree. So, insertion takes O(N).

10. How many types of the merge are available in skew heaps?

a) 1
b) 2
c) 3
d) 4

View Answer

Answer: b

Explanation:

Two kinds of the merge are available in skew heaps- naïve merge and skew merge.

11. Naïve merge cannot be done in a skew merge.

a) true
b) false

View Answer

Answer: b

Explanation:

One way of doing skew merge is to begin with naïve merge and then swapping the left and right children of the tree.

12. What is the amortized efficiency of skew merge?

a) O(N)
b) O( log N)
c) O( N log N)
d) O(N2)

View Answer

Answer: b

Explanation:

The amortized efficiency of a skew heap is mathematically found to be O( log N).

13. In skew heaps, certain constraints are to be met in order to perform swapping.

a) true
b) false

View Answer

Answer: b

Explanation:

 In skew heaps, swaps are unconditional. It is done with the exception that the largest of all nodes does not have its children swapped.

14. What is the time taken to delete a minimum element in a leftist heap?

a) O(N)
b) O(N log N)
c) O(log N)
d) O(M log N)

View Answer

Answer: c

Explanation:

 The time taken to delete a minimum element in a leftist heap is mathematically found to be O(log N).

15. In what time can a leftist heap be built?

a) O(N)
b) O(N log N)
c) O(log N)
d) O(M log N)

View Answer

Answer: a

Explanation:

 The mathematical calculation yields a result that, a leftist heap can be built in O(N) time by building a binary heap.

16. What is the time complexity for creating a ternary heap using swapping?

a) O (log n/ log 3)
b) O (n!)
c) O (n)
d) O (1)

View Answer

Answer: c

Explanation:

 Ternary Heap can be formed by two swapping operations. Therefore, the time complexity for creating a ternary heap using two swapping operation is found to be O (n).

    You May Also Like...

  • Know About Most Powerful Jagannath Temple, Puri
  • Top Story About Ghatgan Tarini Temple, Keonjhar District
  • Positive / Negative Impacts of Social Media on Students
  • TOP 20+ MCQs on Data Structure with Answers
  • TOP MCQs on Data Structure with Answers
  • TOP MCQs on Rotation Array Operation Data Structure with Answers
  • TOP MCQs on Preorder Traversal Data Structure with Answers
  • TOP MCQs on Postorder Traversal Data Structure with Answers

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Quick Links

  • Home
  • About Us
  • Privacy Policy
  • Terms of Use
  • Disclaimer
  • Contact Us

Categories

  • Income Tax
  • International Taxation
  • GST
  • MCQs
  • Others
  • CA Courses

Latest Posts

  • Five changes in ITR forms of FY 2024-25 (AY 2025-26)
  • Form 10-IEA: Option to Choose Old Tax Regime
  • What is Section 54EC of the Income Tax Act?
  • What is Section 54F of the Income Tax Act?
©2025 Online Solves. All rights Reserved | Developed by AlgoPage IT Solutions Pvt. Ltd.
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT