GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2026 set2

GATE 2026 set2 · CS · MCQ · 1 mark · Programming and Data Structures › Trees

GATE 2026 set2 Computer Science and Information Technology question: The set T represents various traversals over binary tree. The set S represents the order…

The set T represents various traversals over binary tree. The set S represents the order of visiting nodes during a traversal.

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

Which one of the following is the correct match from T to S ?

  1. (A)

    I – L, II – M, III – N

  2. (B)

    I – M, II – L, III – N

  3. (C)

    I – N, II – M, III – L

  4. (D)

    I – L, II – N, III – M

Show answer

This question is in an all-India live mock that is open now. Its answer appears here when the mock closes.

Practise this question with exam-style marking