
Quiz on Trees and Binary Search Trees

Quiz
•
Computers
•
12th Grade
•
Easy
Gunasundari Chinnasamy
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the worst-case time complexity for searching in a balanced binary search tree?
O(n)
O(log n)
O(n log n)
O(1)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the degree of a node in a tree?
Number of edges from the root to the node
Number of children of the node
Total number of nodes in the tree
Height of the node
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about leaf nodes?
They are also known as internal nodes
They have no children
They have at least one child
They are always at the root level
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a binary tree, how many children can a node have?
More than 2
0 or 1
0, 1, or 2
1 or 2
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the height of a leaf node in a tree?
The number of children
0
1
The number of edges to the root
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary purpose of an expression tree?
To visualize tree structures
To store hierarchical data
To represent algebraic expressions
To perform binary search operations
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which traversal method visits the root node last?
Pre-order
In-order
Level-order
Post-order
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
Client Server Model

Quiz
•
11th - 12th Grade
23 questions
OCR J275 - Data Representation

Quiz
•
KG - University
15 questions
FUNDAMENTALS OF ALGORITHMS - UNIT 3 MCQS

Quiz
•
12th Grade
22 questions
MSS CSEC Intro

Quiz
•
9th - 12th Grade
20 questions
Algorithm questions

Quiz
•
12th Grade - University
20 questions
ONE 6th FORM A* & Dijkstras and complexities

Quiz
•
12th Grade
15 questions
FUNDAMENTALS OF ALGORITHMS - UNIT 2 MCQS

Quiz
•
12th Grade
16 questions
The Internet

Quiz
•
6th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade