DRAINER CS : Data Structures Final Review

Quiz
•
Computers
•
University
•
Easy
Ashtin Hall
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Which of the following statements is true about Binary Search Trees (BSTs)?
BSTs are not suitable for storing data in a sorted order
The right subtree of a node in a BST contains values greater than the nodes value
BSTs can never be unbalanced
BSTs have a time complexity of O(n) for insertion and search operations
2.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Which of the following operations can not be performed in O(log n) time in a perfect Binary Search Tree?
Insertion
Deletion
Searching for a given key
In-order traversal
3.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
What is the time complexity of finding the minimum value of a balanced Binary Search Tree
O(n)
O(1)
O( log n)
O(n log n)
4.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Which of the following statements is true about the following code?
The function prints the height of the tree
The function prints the tree in post-order traversal
The function prints the tree in in-order traversal
The function prints the tree in pre-order traversal
5.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Which of the following is not a property of Binary Search Trees
A node can have at most two children.
All nodes at the same level have the same value
All nodes in the left subtree of a node have values less thatn the nodes valu
All nodes in the right subtree of a node have values greater than the nodes value
6.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Which of the following statements is true about the following python code?
The function deletes the node with the given key from the tree
The function inserts a new node with the given key in the tree
The function searches for the node with the given key in the tree
The function returns the minimum value in the tree
7.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
What could be the worst-case time complexity of inserting a node in a Binary Search Tree?
O(log n)
O(n log n)
O(n)
O(1)
Create a free account and access millions of resources
Similar Resources on Wayground
17 questions
Demo DS-A ASHV Quiz

Quiz
•
University
20 questions
2.3.1 Graph Traversal & Path Finding Algorithms

Quiz
•
12th Grade - University
13 questions
DSA Day 2

Quiz
•
University
10 questions
Graph

Quiz
•
University
10 questions
Knowledge representations

Quiz
•
University
10 questions
Quiz-AIML

Quiz
•
University
10 questions
Tree in Python

Quiz
•
University
20 questions
DS Mid Review

Quiz
•
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
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

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

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

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

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University