Question 22Asked in Bihar STET 2024 Paper II Computer Science, 11 Jun 2024, Shift 2 (3:00 PM)

A complete binary tree is a binary tree in which:एक पूर्ण द्विआधारी पेड़ एक द्विआधारी पेड़ है जिसमें:

एक पूर्ण द्विआधारी पेड़ एक द्विआधारी पेड़ है जिसमें:
  1. AAll nodes have the same valueसभी नोड्स में एक ही मूल्य होता है
  2. BAll leaf nodes are at the same levelसभी लीफ नोड्स एक ही स्तर पर होते हैं
  3. CAll internal nodes have the same degreeसभी आंतरिक नोड्स में एक ही डिग्री होती है
  4. DThe left subtree of each node has a larger height than the right subtreeप्रत्येक नोड के बाएं सबट्री में दाएं सबट्री की तुलना में बड़ी ऊंचाई होती है
Show answerHide answer

Correct answer: (B) All leaf nodes are at the same levelसभी लीफ नोड्स एक ही स्तर पर होते हैं

Explanation

Of the options, B is the intended one. Strictly, a complete binary tree fills every level except possibly the last, which is filled from the left, so all leaves lie on the last one or two levels.विकल्पों में B ही अभीष्ट है। सख्ती से, complete binary tree में आखिरी स्तर को छोड़कर हर स्तर पूरा भरा होता है और आखिरी स्तर बाईं ओर से भरा जाता है, इसलिए सभी पत्ते आखिरी एक या दो स्तरों पर होते हैं।

From Bihar STET 2024 Paper II Computer Science PYQ, 11 Jun 2024, Shift 2 (3:00 PM)

This is question 22 of Bihar STET 2024 Paper II Computer Science PYQ, 11 Jun 2024, Shift 2 (3:00 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.