Binary Trees IB

Binary Trees IB

11th Grade

17 Qs

quiz-placeholder

Similar activities

Data Structures: 1D,2D & List

Data Structures: 1D,2D & List

11th Grade

17 Qs

BTEC Theory quiz 1: Networks and Internet

BTEC Theory quiz 1: Networks and Internet

8th - 11th Grade

16 Qs

4.6.4 Logic Gates

4.6.4 Logic Gates

10th Grade - Professional Development

15 Qs

CCEA Digital Technology Chapter 14 Multimedia Applications

CCEA Digital Technology Chapter 14 Multimedia Applications

11th Grade

20 Qs

Wee Word Intro

Wee Word Intro

7th - 12th Grade

12 Qs

Google

Google

7th - 12th Grade

20 Qs

Five Nights At Freddy's: Security Breach Quiz

Five Nights At Freddy's: Security Breach Quiz

KG - Professional Development

13 Qs

Sustainable Developments Goals

Sustainable Developments Goals

6th - 12th Grade

17 Qs

Binary Trees IB

Binary Trees IB

Assessment

Quiz

Computers

11th Grade

Easy

Created by

Jonathan Clark

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?