
Binary Tree and Heap Quiz

Quiz
•
Education
•
Professional Development
•
Hard
Harwin Mendoza
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the infix expression for the operation 1*2+3?
1+2*3
1*2+3
1+(2*3)
(1*2)+3
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In postfix notation, how is the expression (12*3)+4 represented?
12*3+
123*4+
12*3+4
12*34+
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator has the highest precedence?
^
*
-
+
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the left subtree of a binary search tree node supposed to contain?
Only leaf nodes
Duplicate nodes
Nodes with keys lesser than the node’s key
Nodes with keys greater than the node’s key
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when you try to insert a duplicate key in a binary search tree?
It skips the insertion
It throws an error
It replaces the existing node
It creates a new node
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a max-heap, what is true about the root node?
It is always a leaf node
It can be any value
It contains the maximum value
It contains the minimum value
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary use of heaps?
Implementing binary search trees
Implementing priority queues
Storing sorted data
Creating expression trees
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
Tree Data Structure Quiz

Quiz
•
Professional Development
10 questions
Lymph-tastic!

Quiz
•
6th Grade - Professio...
17 questions
Language Features

Quiz
•
Professional Development
20 questions
Need to/ Want to/ Have to/ Like to

Quiz
•
Professional Development
10 questions
TOEFL Structure (Skill 1-5)

Quiz
•
9th Grade - Professio...
15 questions
SYLLOGISM

Quiz
•
Professional Development
15 questions
perming

Quiz
•
Professional Development
13 questions
The Giver Comprehension Chapters 13-16

Quiz
•
7th Grade - Professio...
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