Binary Trees IB

Binary Trees IB

11th Grade

17 Qs

quiz-placeholder

Similar activities

[AP CSP] Hexadecimal Conversions

[AP CSP] Hexadecimal Conversions

9th - 12th Grade

16 Qs

Search & Sort Algorithms

Search & Sort Algorithms

7th - 11th Grade

18 Qs

Data Structures

Data Structures

9th - 12th Grade

21 Qs

2.3.1 Algorithms

2.3.1 Algorithms

11th Grade

20 Qs

AS Computing: Data Structures

AS Computing: Data Structures

10th Grade - University

15 Qs

SLR14 - Trees TAR

SLR14 - Trees TAR

11th - 12th Grade

20 Qs

Binary

Binary

6th - 12th Grade

15 Qs

Searching & Sorting Algorithms

Searching & Sorting Algorithms

10th Grade - University

16 Qs

Binary Trees IB

Binary Trees IB

Assessment

Quiz

Computers

11th Grade

Easy

Created by

Jonathan Clark

Used 1+ times

FREE Resource

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the value of the ROOT node in this Tree?

35

24

42

20

Answer explanation

The ROOT node value is the topmost value in the Tree. In this case, the correct value is 35, as it is the only option that represents the ROOT node correctly.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Root

data structure similar to a graph, with no loops.

an object in a graph also known as a vertex

a join of relationship between nodes - also know as an arc

the starting node in a rooted tree structure from which all other nodes branch off./

Answer explanation

The correct answer is 'the starting node in a rooted tree structure from which all other nodes branch off.' This defines the root as the primary node in a tree, from which all other nodes extend.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Binary TREE

data structure similar to a graph, with no loops.

an object in a graph also known as a vertex

a join of relationship between nodes - also know as an arc

a tree where each node can only have 2 child nodes attached to it

Answer explanation

A binary tree is defined as a tree structure where each node can have at most two child nodes. This distinguishes it from other tree types and aligns with the correct answer choice.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In preorder traversal of a binary tree the second step is ____________

traverse the right subtree

traverse the left subtree

traverse right subtree and visit the root

visit the root

Answer explanation

In preorder traversal, the first step is to visit the root node. The second step is to traverse the left subtree before moving on to the right subtree, making 'traverse the left subtree' the correct choice.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many leaf are there in the tree?

1

3

4

7

Answer explanation

The tree has 3 leaves, which can be counted by examining the branches. The other options (1, 4, and 7) do not match the actual count of leaves present.

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

In this tree, where would the new value "7" be placed?

On the left "leaf" of "4"

On the right "leaf" of "6"

On the left "leaf" of "15"

Over the top of the current number "5"

Answer explanation

The value '7' is greater than '6' but less than '15', so it should be placed on the right 'leaf' of '6'. This maintains the binary search tree property where left children are smaller and right children are larger.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these tree traversal methods is used to output the contents of a binary tree in ascending order?

Pre-Order

In-Order

Post-Order

Monastic Orders

Answer explanation

The In-Order traversal method visits nodes in the order of left child, parent, and then right child. This results in the nodes of a binary tree being output in ascending order, making it the correct choice for this question.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?