DSA (Quiz 4) - Trees
Quiz
•
Information Technology (IT)
•
University
•
Medium
M'Alou Gonzales
Used 4+ times
FREE Resource
Enhance your content in a minute
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
Windows Server Installation with DHCP, DNS, and AD
Quiz
•
University
15 questions
Q4. Entity Relationship Modelling
Quiz
•
University
17 questions
Q5. Normalization of Database Table
Quiz
•
University
19 questions
Understanding Robotics and Autonomy
Quiz
•
11th Grade - University
15 questions
BASIC PC COMPONENTS AND TROUBLESHOOTING - BATCH 1
Quiz
•
University
18 questions
CHAPTER 1: SYSTEM ANALYSIS AND DESIGN
Quiz
•
University
20 questions
Information Technology Quiz
Quiz
•
University
20 questions
Activity - Task Completion and Safety
Quiz
•
9th Grade - University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
