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 anybody drives in public in contravention of S.3 and 4 of the Motor vehicles act, he is punishable with:
Which of the following best represents the provision under BNS regarding right of private defence?
Under the SARFAESI Act, 2002, the "Secured Creditor" refers to:
What is CPI  as per RBI Act, 1934?
In the landmark case Krishan v. State of Haryana (2013), the Supreme Court addressed the admissibility and evidentiary value of dying declarations under...
Among the following which section of the Act based on the principle of “Agency”_____
Under the Companies Act, 2013, what is the minimum notice period required to call a general meeting (other than an AGM)?
The authority to alter the boundaries of states in India lies with
Petty organised crime under Section 112 includes all of the following except:
A Public Company is a company which has a minimum paid-up share capital ____________