What is the root node of a tree?
DSA (Quiz 4) - Trees

Quiz
•
Information Technology (IT)
•
University
•
Hard
M'Alou Gonzales
Used 3+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Similar Resources on Quizizz
20 questions
Desvendando Estruturas de Dados

Quiz
•
University
15 questions
uji coba Strategi Algoritma dan Pemrograman

Quiz
•
11th Grade - University
20 questions
Map and Sorting Algorithms Quiz

Quiz
•
University
20 questions
Quiz tentang Arduino dan Raspberry Pi

Quiz
•
11th Grade - University
25 questions
GPC_IT Networking Mar 25, 2025

Quiz
•
University
20 questions
Mastering Algorithmic Challenges

Quiz
•
University
18 questions
Codean - Java Rekursi

Quiz
•
University
19 questions
Kuis Sensor dan Aktuator IOT

Quiz
•
11th Grade - University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade