Question
In a binary tree, which traversal method visits the root
node first, then the left subtree, and finally the right subtree?Solution
In Preorder Traversal , the root node is visited first, followed by the left subtree, and then the right subtree. This traversal method is often used for creating a copy of the tree or evaluating prefix expressions. The incorrect options: Inorder Traversal : This method visits the left subtree first, then the root node, and finally the right subtree. Postorder Traversal : In this traversal, the left subtree is visited first, followed by the right subtree, and the root node is visited last. Level-order Traversal : This method visits nodes level by level from top to bottom and left to right. Depth-first Traversal : This is a general term that includes preorder, inorder, and postorder traversal methods, but it does not specify the exact order.
If the diagonal of a square is increased by 4 cm, its area increases by 56 cm2 . Find the ratio of the new area of the square to the initial ...
The average mark obtained by 150 candidates in a certain examination is 45. If the average marks of passed candidates are 55 and that of the failed cand...
A purse has 10p, 20p and 50p coins in the ratio 9 : 6 : 5. If the total value is Rs. 55.20, find 75% of the number of 50p coins.
- Find the third proportion of 15.2 and 19.
Ratio of the number of belts to that of purses in a store is 2:5. The ratio of the selling price of each belt to that of each purse is 4:3. If revenue g...

The sum of three numbers is 118. If the ratio of the first number to the second number is 3 : 4 and that of the second number to the third number is 5 ...
- In a classroom, the ratio of the number of left-handed to right-handed students is 5:6. When 10 more students of each type join, the ratio changes to 15:16...
Rs. 960 is divided among A, B and C in the ratio 4 : 5 : 7. What is C’s share?
- The ratio of the number of fiction to non-fiction books in a library is 4:7. If 16 more books of each type are added, the ratio becomes 8:13. Find the numb...