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 MCQs on KD Tree Data Structure with Answers

Posted on November 27, 2023

1. In what time can a 2-d tree be constructed?

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

View Answer

Answer: b

Explanation: 

A perfectly balanced 2-d tree can be constructed in O(N log N) time. This value is computed mathematically.

2. Insertion into a 2-d tree is a trivial extension of insertion into a binary search tree.

a) true
b) false

View Answer

Answer: a

Explanation:

 Insertion of elements in a 2-d tree is similar to that of a binary search tree. Hence, it is a trivial extension of the binary search tree.

3. In a two-dimensional search tree, the root is arbitrarily chosen to be?

a) even
b) odd
c) depends on subtrees
d) 1

View Answer

Answer: b

Explanation:

In a two- dimensional k-d tree (i.e.) 2-d tree, the root is arbitrarily chosen to be an odd level and it applies to all 2-d trees.

4. Which of the following is the simplest data structure that supports range searching?

a) Heaps
b) binary search trees
c) AA-trees
d) K-d trees

View Answer

Answer: d

Explanation:

K-d trees are the simplest data structure that supports range searching and also it achieves the respectable running time.

5. In a k-d tree, k originally meant?

a) number of dimensions
b) size of tree
c) length of node
d) weight of node

View Answer

Answer: a

Explanation:

Initially, 2-d trees were created. Then, 3-d trees, 4-trees etc., where k meant the number of dimensions.

6. Each level in a k-d tree is made of?

a) dimension only
b) cutting and dimension
c) color code of node
d) size of the level

View Answer

Answer: b

Explanation:

Each level in a k-d tree is made of dimensions and cutting. Cutting and dimensions are used for insertion, deletion and searching purposes.

7. What is the worst case of finding the nearest neighbour?

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

View Answer

Answer: a

Explanation:

The worst case analysis of finding the nearest neighbour in a k-d tree is mathematically found to be O(N).

8. What is the run time of finding the nearest neighbour in a k-d tree?

a) O(2+ log N)
b) O( log N)
c) O(2d log N)
d) O( N log N)

View Answer

Answer: c

Explanation:

The run time of finding the nearest neighbour in a kd tree is given as O(2d log N) where 2d is the time taken to search the neighbourhood.

 

9. How many prime concepts are available in nearest neighbour search in a kd tree?

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

View Answer

Answer: c

Explanation:

Three important concepts are available in finding the nearest neighbour. They are partial results, pruning, traversal order.

10. Reducing search space by eliminating irrelevant trees is known as?

a) pruning
b) partial results
c) freeing space
d) traversing

View Answer

Answer: a

Explanation:

Pruning is eliminating irrelevant trees. Partial results are keeping best results and updating. Traversal is visiting all the nodes of a tree.

11. Several kinds of queries are possible on a k-d called as?

a) partial queries
b) range queries
c) neighbour queries
d) search queries

View Answer

Answer: b

Explanation:

Several range queries are possible on a k-d tree. One of the range queries is known as a partial match query.

12. What is the time taken for a range query for a perfectly balanced tree?

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

View Answer

Answer: c

Explanation:

For a perfectly balanced k-d tree, the range query could take O(√N+M) in the worst case to report M matches.

13. The 2d search tree has the simple property that branching on odd levels is done with respect to the first key.

a) True
b) False

View Answer

Answer: a

Explanation:

 Branching on odd levels is done with respect to the first key and branching on even levels is done with respect to the second key in a 2-d tree.

14. Who invented k-d trees?

a) Arne Andersson
b) Jon Bentley
c) Jon Von Newmann
d) Rudolf Bayer

View Answer

Answer: b

Explanation:

 Jon Bentley found k-d trees. Rudolf Bayer found red black trees. Arne Andersson found AA- trees.

15. What is the condition for an equivalence relation if two cities are related within a country?

a) the two cities should have a one-way connection
b) the two cities should have a two-way connection
c) the two cities should be in different countries
d) no equivalence relation will exist between two cities

View Answer

Answer: b

Explanation:

 If the two towns are in the same country and have a two-way road connection between them, it satisfies equivalence property.

16. Reversal algorithm and juggling algorithm for array rotation have the same time complexity.

a) True
b) False

View Answer

Answer: a

Explanation:

 Time complexity of juggling algorithm is O(n) which like that of reversal algorithm. They also have the same space complexity

    You May Also Like...

  • Know About Famous Chilika Lake And Its Stories[New]
  • Avoid Top 5 Major Mistakes While Changing Careers
  • Top 10 Reasons for Leaving Your Current Job
  • Why Kantara Movie is Most Watchable Divine movie?
  • Top 100+ Cyber Security Interview Questions and Answer for 2023
  • TOP 20+ MCQs on Decimal to Binary using Stacks Data Structure with Answers
  • TOP MCQs on Dynamic Array Data Structure with Answers
  • TOP MCQs on Self Organizing List 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