Consider the following statement regarding programming language:

  • I – Function calling sequence and execution in any programming language is preorder traversal.
  • II – Function calling sequence and execution in any programming language is postorder traversal.
  • III – Function calling sequence in any programming language is preorder traversal and execution is postorder.
  • IV – Function calling sequence in any programming language is postorder traversal and execution is preorder.

Which of the following statement is correct?

(A) I and II
(B) III only
(C) IV only
(D) I only


Answer: (B)

Explanation: Function calling sequence in any programming language is preorder traversal and execution is postorder.

So, option (B) is correct.

Quiz of this Question


  • Last Updated : 14 Nov, 2018

Share your thoughts in the comments