Correct option is C
A Binary Search Tree (BST) is constructed by inserting the given words one by one, comparing them according to dictionary (lexicographic) order.
1. Constructing the BST
The words are inserted in the following order:
1. Mathematics
2. Physics
3. Geography
4. Zoology
5. Metrology
6. Geology
7. Psychology
8. Chemistry
For a BST:
· If the new element is
less than the current node, move to the
left.
· If the new element is
greater than the current node, move to the
right.
Here, comparison is performed using
dictionary order.
2. Insert "Mathematics"
The first element inserted becomes the root:
Mathematics
3. Insert "Physics"
Compare:
Physics > Mathematics
Therefore, Physics is placed to the
right of Mathematics.
4. Insert "Geography"
Compare Geography with Mathematics:
Geography < Mathematics
Therefore, Geography becomes the
left child of Mathematics.
5. Insert "Zoology"
Compare:
Zoology > Mathematics
Move right to Physics.
Now:
Zoology > Physics
Therefore, Zoology becomes the right child of Physics.
6. Insert "Metrology"
Compare with Mathematics:
Metrology > Mathematics
Move to Physics.
Metrology < Physics
Therefore, it becomes the left child of Physics.
7. Insert "Geology"
Compare with Mathematics:
Geology < Mathematics
Move left to Geography.
Now compare:
Geology > Geography
Therefore, Geology becomes the right child of Geography.
8. Insert "Psychology"
Compare:
Psychology > Mathematics
Move right to Physics.
Then:
Psychology < Physics
Move left to Metrology.
Now:
Psychology > Metrology
Therefore, Psychology becomes the
right child of Metrology.
9. Insert "Chemistry"
Compare:
Chemistry < Mathematics
Move to Geography.
Then:
Chemistry < Geography
Therefore, Chemistry becomes the
left child of Geography.
10. Final BST
The complete BST is:
Now determine the levels:
| Level |
Word(s) |
| 0 |
Mathematics |
| 1 |
Geography, Physics |
| 2 |
Chemistry, Geology, Metrology, Zoology |
| 3 |
Psychology |
| Word |
Option |
Level |
| Mathematics |
A |
0 |
| Physics |
D |
1 |
| Psychology |
C |
3 |
| Zoology |
B |
2 |
A, D, B, C
