DSA (Quiz 4) - Trees
Quiz
•
Information Technology (IT)
•
University
•
Medium
M'Alou Gonzales
Used 4+ times
FREE Resource
Enhance your content
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the root node of a tree?
A node with no parent
A node with two children
A node with no children
A node at the lowest level
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about trees?
Trees can have cycles
Trees can have multiple roots
Trees are a type of graph
Trees cannot be represented using linked lists
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the degree of a node?
Number of ancestors
Number of children
Number of siblings
Number of edges
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which term refers to nodes with the same parent?
Root
Siblings
Leaf
Height
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the height of a tree?
The number of edges from the root to a node
The total number of nodes in the tree
The longest path from the root to a leaf
The number of leaf nodes
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true for a binary tree?
Each node can have at most two children
Each node can have an unlimited number of children
A binary tree can have cycles
The root node always has exactly two children
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which traversal visits the left subtree, then the root, then the right subtree?
Preorder
Inorder
Postorder
Level-order
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
18 questions
Quis Kecerdasan Buatan
Quiz
•
University
20 questions
Quiz Blockchain Security
Quiz
•
University
15 questions
Topologi Jaringan dan Karakteristiknya
Quiz
•
10th Grade - University
17 questions
Quiz on Local Area Networks (LANs) Systems and Configurations
Quiz
•
University
20 questions
H0 - 06 Define la librería Scikit-Learn y Pytorch
Quiz
•
University
17 questions
UML Trial exam 2
Quiz
•
University
17 questions
LA 1A 2024 - QUIZ P15
Quiz
•
University
15 questions
Recurrence Relations and Algorithms Quiz
Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms
Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
20 questions
La Hora
Quiz
•
9th Grade - University
7 questions
Cell Transport
Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University