GATE Exam  >  GATE Questions  >   Consider a binary tree in which every node h... Start Learning for Free
Consider a binary tree in which every node has 3 attributes (Left child pointer, DATA, right child pointer). The tree has 3 levels. Now consider the following three cases:
Case 1: The tree is completely filled
Case 2: The last level of the tree is half-filled
Case 3: The last level of the tree is quarterly filled
If the total number of pointers in case 1 = a
similarly, the total number of pointers in case 2 = b
and, the total number of pointers in case 3 = c
Find the value of (b+c-a).
  • a)
    0
  • b)
    4
  • c)
    6
  • d)
    16
Correct answer is option 'B'. Can you explain this answer?
Verified Answer
Consider a binary tree in which every node has 3 attributes (Left chi...
Case 1:
Total pointers, a = 14
Case 2:
Total pointers, b = 10
Case 3:
Total pointers, c = 8
(b+c-a) = 10 + 8 – 14 = 4
View all questions of this test
Most Upvoted Answer
Consider a binary tree in which every node has 3 attributes (Left chi...
Case 1:
Total pointers, a = 14
Case 2:
Total pointers, b = 10
Case 3:
Total pointers, c = 8
(b+c-a) = 10 + 8 – 14 = 4
Explore Courses for GATE exam
Consider a binary tree in which every node has 3 attributes (Left child pointer, DATA, right child pointer). The tree has 3 levels. Now consider the following three cases:Case 1: The tree is completely filledCase 2: The last level of the tree is half-filledCase 3: The last level of the tree is quarterly filledIf the total number of pointers in case 1 = asimilarly, the total number of pointers in case 2 = band, the total number of pointers in case 3 = cFind the value of (b+c-a).a)0b)4c)6d)16Correct answer is option 'B'. Can you explain this answer?
Question Description
Consider a binary tree in which every node has 3 attributes (Left child pointer, DATA, right child pointer). The tree has 3 levels. Now consider the following three cases:Case 1: The tree is completely filledCase 2: The last level of the tree is half-filledCase 3: The last level of the tree is quarterly filledIf the total number of pointers in case 1 = asimilarly, the total number of pointers in case 2 = band, the total number of pointers in case 3 = cFind the value of (b+c-a).a)0b)4c)6d)16Correct answer is option 'B'. Can you explain this answer? for GATE 2024 is part of GATE preparation. The Question and answers have been prepared according to the GATE exam syllabus. Information about Consider a binary tree in which every node has 3 attributes (Left child pointer, DATA, right child pointer). The tree has 3 levels. Now consider the following three cases:Case 1: The tree is completely filledCase 2: The last level of the tree is half-filledCase 3: The last level of the tree is quarterly filledIf the total number of pointers in case 1 = asimilarly, the total number of pointers in case 2 = band, the total number of pointers in case 3 = cFind the value of (b+c-a).a)0b)4c)6d)16Correct answer is option 'B'. Can you explain this answer? covers all topics & solutions for GATE 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Consider a binary tree in which every node has 3 attributes (Left child pointer, DATA, right child pointer). The tree has 3 levels. Now consider the following three cases:Case 1: The tree is completely filledCase 2: The last level of the tree is half-filledCase 3: The last level of the tree is quarterly filledIf the total number of pointers in case 1 = asimilarly, the total number of pointers in case 2 = band, the total number of pointers in case 3 = cFind the value of (b+c-a).a)0b)4c)6d)16Correct answer is option 'B'. Can you explain this answer?.
Solutions for Consider a binary tree in which every node has 3 attributes (Left child pointer, DATA, right child pointer). The tree has 3 levels. Now consider the following three cases:Case 1: The tree is completely filledCase 2: The last level of the tree is half-filledCase 3: The last level of the tree is quarterly filledIf the total number of pointers in case 1 = asimilarly, the total number of pointers in case 2 = band, the total number of pointers in case 3 = cFind the value of (b+c-a).a)0b)4c)6d)16Correct answer is option 'B'. Can you explain this answer? in English & in Hindi are available as part of our courses for GATE. Download more important topics, notes, lectures and mock test series for GATE Exam by signing up for free.
Here you can find the meaning of Consider a binary tree in which every node has 3 attributes (Left child pointer, DATA, right child pointer). The tree has 3 levels. Now consider the following three cases:Case 1: The tree is completely filledCase 2: The last level of the tree is half-filledCase 3: The last level of the tree is quarterly filledIf the total number of pointers in case 1 = asimilarly, the total number of pointers in case 2 = band, the total number of pointers in case 3 = cFind the value of (b+c-a).a)0b)4c)6d)16Correct answer is option 'B'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Consider a binary tree in which every node has 3 attributes (Left child pointer, DATA, right child pointer). The tree has 3 levels. Now consider the following three cases:Case 1: The tree is completely filledCase 2: The last level of the tree is half-filledCase 3: The last level of the tree is quarterly filledIf the total number of pointers in case 1 = asimilarly, the total number of pointers in case 2 = band, the total number of pointers in case 3 = cFind the value of (b+c-a).a)0b)4c)6d)16Correct answer is option 'B'. Can you explain this answer?, a detailed solution for Consider a binary tree in which every node has 3 attributes (Left child pointer, DATA, right child pointer). The tree has 3 levels. Now consider the following three cases:Case 1: The tree is completely filledCase 2: The last level of the tree is half-filledCase 3: The last level of the tree is quarterly filledIf the total number of pointers in case 1 = asimilarly, the total number of pointers in case 2 = band, the total number of pointers in case 3 = cFind the value of (b+c-a).a)0b)4c)6d)16Correct answer is option 'B'. Can you explain this answer? has been provided alongside types of Consider a binary tree in which every node has 3 attributes (Left child pointer, DATA, right child pointer). The tree has 3 levels. Now consider the following three cases:Case 1: The tree is completely filledCase 2: The last level of the tree is half-filledCase 3: The last level of the tree is quarterly filledIf the total number of pointers in case 1 = asimilarly, the total number of pointers in case 2 = band, the total number of pointers in case 3 = cFind the value of (b+c-a).a)0b)4c)6d)16Correct answer is option 'B'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Consider a binary tree in which every node has 3 attributes (Left child pointer, DATA, right child pointer). The tree has 3 levels. Now consider the following three cases:Case 1: The tree is completely filledCase 2: The last level of the tree is half-filledCase 3: The last level of the tree is quarterly filledIf the total number of pointers in case 1 = asimilarly, the total number of pointers in case 2 = band, the total number of pointers in case 3 = cFind the value of (b+c-a).a)0b)4c)6d)16Correct answer is option 'B'. Can you explain this answer? tests, examples and also practice GATE tests.
Explore Courses for GATE exam
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev