All mock tests are FREE till 31 December — register to save your progress
Unit 7 · Data Structures and Algorithms Paper 2 CS · 22 June 2026

A binary search tree is obtained by inserting the words "Mathematics", "Physics", "Geography", "Zoology", "Metrology", "Geology", "Psychology" and "Chemistry" in order. Words are compared by dictionary order. Arrange the following words in increasing order of their level in the tree.
A. Mathematics
B. Zoology
C. Psychology
D. Physics
Choose the correct answer from the options given below:

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: C. A, D, B, C

Explanation

Inserting in order: "Mathematics" becomes the root (level 0). "Physics" > "Mathematics" goes right (level 1); "Geography" "Mathematics", > "Physics" goes right of Physics (level 2). "Metrology" > "Mathematics" but "Geography" goes right of Geography (level 2). "Psychology" > "Mathematics", > "Physics", A, D, B, C.

More Data Structures and Algorithms questions