
CHAPTER 5 : TREES
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Azilah Rahim
Used 3+ times
FREE Resource
Enhance your content in a minute
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the root node in a tree?
The last node in the tree
A node without any children
The first node in the tree
A node with two children
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a binary tree, how many children can a node have at most?
One
Two
Three
Unlimited
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about a binary search tree (BST)?
The left child must have a value greater than the root
The right child must have a value greater than the root
All children must have the same value
The root must be smaller than all children
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a leaf node?
A node that is the root
A node with no children
A node with exactly two children
A node with multiple parents
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the degree of a node in a tree?
The number of siblings
The number of children a node has
The number of parents a node has
The number of leaves in the tree
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which traversal method visits the left subtree, then the root, and finally the right subtree?
Pre-order traversal
Post-order traversal
In-order traversal
Level-order traversal
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which type of tree allows a node to have at most three children?
Binary Tree
Ternary Tree
N-ary Tree
AVL Tree
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
25 questions
PYTHON CONTEST
Quiz
•
University
25 questions
Set Theory Quiz
Quiz
•
University
25 questions
SQL MIDTERM EXAM
Quiz
•
University
25 questions
Human and Computer Interaction Part 2
Quiz
•
University - Professi...
34 questions
Computer Classification
Quiz
•
University
25 questions
PreAssessment_Computer Basics
Quiz
•
University
30 questions
Linux Quiz (RHCSA)
Quiz
•
University
25 questions
Python Module 1
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
