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 Binary Tree Operations Data Structure with Answers

Posted on November 20, 2023

1. What is the maximum number of children that a binary tree node can have?

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

View Answer

Answer: c

Explanation: 

 In a binary tree, a node can have atmost 2 nodes (i.e.) 0,1 or 2 left and right child.

2. A binary tree is a rooted tree but not an ordered tree.

a) true
b) false

View Answer

Answer: b

Explanation:

 A binary tree is a rooted tree and also an ordered tree (i.e) every node in a binary tree has at most two children.

3. How many common operations are performed in a binary tree?

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

View Answer

Answer: c

Explanation:

 Three common operations are performed in a binary tree- they are insertion, deletion and traversal.

4. What is the traversal strategy used in the binary tree?

a) depth-first traversal
b) breadth-first traversal
c) random traversal
d) Priority traversal

View Answer

Answer: b

Explanation:

 Breadth first traversal, also known as level order traversal is the traversal strategy used in a binary tree. It involves visiting all the nodes at a given level.

5. How many types of insertion are performed in a binary tree?

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

View Answer

Answer: b

Explanation:

Two kinds of insertion operation is performed in a binary tree- inserting a leaf node and inserting an internal node.

6. General ordered tree can be encoded into binary trees.

a) true
b) false

View Answer

Answer: a

Explanation:

General ordered tree can be mapped into binary tree by representing them in a left-child-right-sibling way.

7. How many bits would a succinct binary tree occupy?

a) n+O(n)
b) 2n+O(n)
c) n/2
d) n

View Answer

Answer: b

Explanation:

 A succinct binary tree occupies close to minimum possible space established by lower bounds. A succinct binary tree would occupy 2n+O(n) bits.

8. The average depth of a binary tree is given as?

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

View Answer

Answer: b

Explanation:

The average depth of a binary tree is given as O(√N). In case of a binary search tree, it is O(log N).

 

9. How many orders of traversal are applicable to a binary tree (In General)?

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

View Answer

Answer: d

Explanation:

The three orders of traversal that can be applied to a binary tree are in-order, pre-order and post order traversal.

10. If binary trees are represented in arrays, what formula can be used to locate a left child, if the node has an index i?

a) 2i+1
b) 2i+2
c) 2i
d) 4i

View Answer

Answer: a

Explanation:

 If binary trees are represented in arrays, left children are located at indices 2i+1 and right children at 2i+2.

11. Using what formula can a parent node be located in an array?

a) (i+1)/2
b) (i-1)/2
c) i/2
d) 2i/2

View Answer

Answer: b

Explanation:

 If a binary tree is represented in an array, parent nodes are found at indices (i-1)/2.

12. Which of the following properties are obeyed by all three tree – traversals?

a) Left subtrees are visited before right subtrees
b) Right subtrees are visited before left subtrees
c) Root node is visited before left subtree
d) Root node is visited before right subtree

View Answer

Answer: a

Explanation:

In preorder, inorder and postorder traversal the left subtrees are visited before the right subtrees. In Inorder traversal, the Left subtree is visited first then the Root node then the Right subtree. In postorder traversal, the Left subtree is visited first, then Right subtree and then the Root node is visited.

13. Which of the following is the predefined function for array reversal in javascript?

a) reverse()
b) arr_reverse()
c) array_reverse()
d) rev()

View Answer

Answer: a

Explanation:

 The predefined function for reversing an array is reverse() in javascript. It does not requires any argument.

14. Predefined function reverse() in C++ is available under which header file?

a) math
b) stdio
c) stdlib
d) algorithm

View Answer

Answer: d

Explanation:

 The predefined function for reversing an array is reverse() in C++ which comes under the library called an algorithm. It requires 2 arguments the first being the pointer to the starting index of the array and the second being the pointer to the last index of the array.

15. What is the time complexity of the juggling algorithm to rotate an array?

a) O(1)
b) O(n)
c) O(d)
d) O(n*d)

View Answer

Answer: b

Explanation:

 Time complexity of juggling algorithm is O(n). Its auxiliary space complexity is O(1).

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...

  • Top 10 Stories About Gajapati Raju, Paralakhemundi Palace
  • Most Beautiful Gandahati Water Fall of Paralakhemundi District
  • Top 10 Key Tips for Clearing the Job Winning Interview [Job Tips]
  • 10 Simple Strategies to Build a Perfect Resume [Job Tips]
  • Why China Bans Ivory Business Trade?
  • A Must-Read To Clear Any Testing Interview [100+ Solved]
  • RRB Exam Question With Answers 2023
  • TOP 20+ MCQs on Evaluation of an Infix Expression 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