Question 73Asked in DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3

Which statement is correct regarding binary search tree? I. The value at node N is less than every value in the left subtree of node.

Which statement is correct regarding binary search tree? I. The value at node N is less than every value in the left subtree of node. II. The value at node N is greater than or equal to every value in the right subtree of N.
  1. AOnly I
  2. BOnly II
  3. CBoth I and II
  4. DNeither I nor II
Show answerHide answer

Correct answer: (D) Neither I nor II

Explanation

In a BST, the value at N is greater than every value in its left subtree and less than (or equal to) every value in its right subtree. Both statements reverse this, so neither is correct.

From DSSSB TGT Computer Science PYQ (Technical), 1 Aug 2021, Shift 3

This is question 73 of DSSSB TGT Computer Science PYQ (Technical), 1 Aug 2021, Shift 3. 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.