
Trees quizz

Quiz
•
Education
•
University
•
Medium
Auzoom four
Used 4+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
In a binary search tree, the left subtree of a node contains nodes with values:
A) Greater than the node's value
B) Less than the node's value
C) Equal to the node's value
D) Random values
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
. Which traversal technique is used to find the minimum element in a binary search tree (BST)?
A) Pre-order traversal
B) In-order traversal
C) Post-order traversal
D) Leftmost traversal
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the time complexity of searching an element in a balanced binary search tree (BST)?
A) O(1)
B) O(log n)
C) O(n)
D) O(n log n)
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is the correct definition of a Red-Black Tree?
A) A self-balancing binary search tree
B) A binary tree where each node is colored either red or black
C) Both A and B
D) None of the above
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the time complexity of inserting an element into an AVL tree?
A) O(1)
B) O(log n)
C) O(n)
D) O(n log n)
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following statements is true about a heap data structure?
A) It is a binary tree.
B) In a max-heap, the parent node is always smaller than its children.
C) It is used to implement priority queues.
D) It is always a balanced tree.
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which traversal method is best used to print the nodes of a binary tree in ascending order?
A) Pre-order traversal
B) In-order traversal
C) Post-order traversal
D) Level-order traversal
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
IT-B-DS Lab Quiz-3

Quiz
•
University
10 questions
Little Bear's Friend

Quiz
•
1st Grade - University
10 questions
Christmas

Quiz
•
University
15 questions
NETWORK ANALYSIS - QUIZ 2

Quiz
•
University
13 questions
Kewargaan Digital

Quiz
•
University
10 questions
DAA Quiz

Quiz
•
University
10 questions
Sumit

Quiz
•
University
10 questions
Dry Run

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Education
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University