What is a tree in the context of data structures?
Trees & Binary Tree

Quiz
•
Computers
•
University
•
Hard

PANDU WICAKSONO
Used 23+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A non-linear data structure
A data structure with only one child
A linear data structure
A data structure with no children
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the root node in a tree?
A node that is stored contiguously
A node that has no children
The topmost node in the tree
Nodes that have the same parent
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the maximum number of nodes on level 3 of a binary tree?
15
8
7
4
Answer explanation
2^k
k = level
misal: level = 3
2^3 = 8
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the depth of a node in a binary tree?
The total number of nodes on the path from the root node to the deepest node
The length of the path from the root to the node
The total number of children that a node has
The total number of levels in the tree
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of binary tree is a binary tree in which every level are at the same depth?
Balanced Binary Tree
Skewed Binary Tree
Complete Binary Tree
Perfect Binary Tree
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct infix notation for the prefix expression * + a b c?
a + b * c
(a + b) * c
a + (b * c)
a + b + c
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which traversal method broadens the search tree as much as possible before going to the next depth?
Pre-order Traversal
Breadth First Search
Depth First Search
Post-order Traversal
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the maximum number of nodes on a binary tree of height 3?
31
7
8
15
Answer explanation
2^(h+1) - 1
h = height
misal :
height = 3
= 2^(3+1) - 1
= 2^4 - 1
= 16 - 1
= 15
Similar Resources on Quizizz
8 questions
FOS Ch.1 PArt 4 (QUIZ 4)

Quiz
•
University
10 questions
Quiz despre B+ Tree

Quiz
•
University
12 questions
Binary Tree

Quiz
•
University
13 questions
Graph Traversal Algorithms Quiz

Quiz
•
12th Grade - University
10 questions
Trees

Quiz
•
University
9 questions
Data structures

Quiz
•
University
10 questions
Quiz 2 - ASD - B

Quiz
•
University
10 questions
tree

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade