Binary Trees IB

Quiz
•
Computers
•
11th Grade
•
Easy
Jonathan Clark
Used 1+ times
FREE Resource
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
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
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
Similar Resources on Wayground
15 questions
Bebras 2014

Quiz
•
7th - 12th Grade
13 questions
hexadecimal binary decimal

Quiz
•
10th - 12th Grade
20 questions
Berpikir Komputasional

Quiz
•
9th Grade - University
20 questions
iGCSE Computer Science: Problem Solving

Quiz
•
9th - 12th Grade
20 questions
Searching and Sorting

Quiz
•
10th - 12th Grade
18 questions
[AP CSP] Binary Number System

Quiz
•
9th - 12th Grade
12 questions
Binary Numbers Quiz

Quiz
•
8th - 12th Grade
20 questions
AP CSP Big Idea 2 & 4 Quizs

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade