
Learn core concepts, essential formulas, and attempt practice questions designed on the latest TCS NQT testing patterns.
Inorder traversal of a Binary Search Tree output is:
Correct Answer: A) Sorted in ascending order
Step-by-step Solution: Inorder traversal visits Left -> Root -> Right. For a BST, this yields values in sorted ascending order.
What is the maximum number of nodes at level 'L' of a binary tree?
Correct Answer: A) 2^L
Step-by-step Solution: Level 0 has 1 node (2^0), Level 1 has 2 nodes (2^1). Level L has 2^L nodes.
Draw tree representations on scrap paper to trace path traversal logic.