...
Question 4883 – UGC NET CS 2018-DEC Paper-2
November 27, 2023
Question 996 – OOPS
November 27, 2023
Question 4883 – UGC NET CS 2018-DEC Paper-2
November 27, 2023
Question 996 – OOPS
November 27, 2023

Question 10964 – Data-Structures

An array X of n distinct integers is interpreted as a complete binary tree. The index of the first element of the array is 0. If the root node is at level 0, the level of element X[i], i ≠ 0, is

Correct Answer: C

Question 204 Explanation: 
If the root node is at level 0 then the level of element X[i] is ⌊log2 (i + 1)⌋.
A
⌊log2 i⌋
B
⌈log2 (i + 1)⌉
C
⌊log2 (i + 1)⌋
D
⌈log2 i⌉
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!