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
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
Similar Resources on Wayground
15 questions
Algorithms: Divide and Conquer vs Greedy

Quiz
•
University
20 questions
Quiz sobre Estruturas de Árvores

Quiz
•
University
20 questions
DATA STRUCTUIR Quiz1 (AIML)

Quiz
•
University
20 questions
Kelas 9 - Halaman 23 (UH Bab 1)

Quiz
•
9th Grade - University
15 questions
Mastering Express JS Concepts

Quiz
•
12th Grade - University
25 questions
UH_TIK (XI)

Quiz
•
11th Grade - University
15 questions
Kekurangan dan Keunggulan Struktur Data

Quiz
•
11th Grade - University
15 questions
Kelas 7 - Halaman 12 (UH Bab 1)

Quiz
•
7th Grade - University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade