GATE CS 2026, set 2 · Question 12 · Programming and Data Structures · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer
The set T represents various traversals over binary tree. The set S represents the order of visiting nodes during a traversal.
Which one of the following is the correct match from T to S ?
| T | S |
|---|---|
| I: Inorder | L: left subtree, node, right subtree |
| II: Preorder | M: node, left subtree, right subtree |
| III: Postorder | N: left subtree, right subtree, node |
- (A) I – L, II – M, III – N
- (B) I – M, II – L, III – N
- (C) I – N, II – M, III – L
- (D) I – L, II – N, III – M
Answer
Answer (A)
Answer from the official GATE CS 2026 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes