MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Two or more nodes with the same parent are ____
A
child
B
parent
C
siblings
D
none of above
Explanation: 

Detailed explanation-1: -Nodes which belong to the same parent are called as siblings. In other words, nodes with the same parent are sibling nodes.

Detailed explanation-2: -Two nodes are said to be siblings if they are present at the same level, and their parents are same.

Detailed explanation-3: -Sibling nodes are nodes on the same hierarchical level under the same parent node. Nodes higher than a given node in the same lineage are ancestors and those below it are descendants.

Detailed explanation-4: -Vocabulary–trees in general Each node may have child nodes. If node A has a child node B, we refer to A as the parent node. Each node except the root node has exactly one parent node. The root node has no parent. Two nodes are siblings if they have the same parent.

Detailed explanation-5: -Nodes with the same parent are called siblings. More tree terminology: The depth of a node is the number of edges from the root to the node.

There is 1 question to complete.