GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2021 set1

GATE 2021 set1 · CS · MCQ · 1 mark · Compiler Design › Runtime Environments

GATE 2021 set1 Computer Science and Information Technology question: Consider the following statements. S 1 : The sequence of procedure calls corresponds to…

Consider the following statements.

: The sequence of procedure calls corresponds to a preorder traversal of the activation tree.

: The sequence of procedure returns corresponds to a postorder traversal of the activation tree.

Which one of the following options is correct?

  1. (A)

    is true and is false

  2. (B)

    is false and is true

  3. (C)

    is true and is true

  4. (D)

    is false and is false

Show answer

Official answer: C

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion