logo

AQA A-Level Computer Science practice

Which use is specifically associated with a pre-order tree-traversal algorithm in the specification?

Try the question first, then check the answer and practise the same topic again.

At a glance

MCQ

Type

practice

Style

Topic

Tree-traversal

Exam-style question

Try this first

Which use is specifically associated with a pre-order tree-traversal algorithm in the specification?.

  1. A.Outputting a binary search tree in ascending order
  2. B.Producing a postfix expression from an expression tree
  3. C.Copying a tree
  4. D.Emptying a tree

Answer and explanation

Concise answer

Copying a tree

Why this is correct

The specified use of pre-order traversal is copying a tree. In-order is associated with ascending output from a binary search tree, while post-order is associated with postfix conversion and emptying a tree.

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions