
Midterm Review
Flashcard
•
Engineering
•
University
•
Hard
Wayground Content
FREE Resource
Student preview

25 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Insert the following numbers into a binary search tree in order: 9, 20, 7, 8, 10, 22, 21. Where will the number 10 be located?
Back
As the right child of 8.
2.
FLASHCARD QUESTION
Front
Insert the numbers 15, 10, 20, 5, 12, 17, 25 into a BST. What is the in-order traversal of the tree?
Back
5, 10, 12, 15, 17, 20, 25
3.
FLASHCARD QUESTION
Front
What is the time complexity of merge sort?
Back
O(nlogn)
4.
FLASHCARD QUESTION
Front
Which of the following correctly describes a stack and a queue?
Stack: Last In, First Out (LIFO);
Queue: First In, First Out (FIFO).
Back
Stack: Last In, First Out (LIFO);
Queue: First In, First Out (FIFO).
5.
FLASHCARD QUESTION
Front
Write a recursive method to count the total number of leaf nodes in a binary tree. What is the base case for this recursive function?
Back
When the node has no children.
6.
FLASHCARD QUESTION
Front
What is the height of the following binary tree?
10
/ \
5 15
/ \
3 7
Back
3
7.
FLASHCARD QUESTION
Front
Which of the following is true for a binary search tree (BST)?
Options:
All left children are greater than the parent node.
All right children are smaller than the parent node.
All left children are smaller and all right children are greater than the parent node.
It is not necessary for a BST to have ordered nodes.
Back
All left children are smaller and all right children are greater than the parent node.
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple

Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Data Structures
Flashcard
•
University
19 questions
Data Link Layer Flashcard6
Flashcard
•
University
15 questions
1342 - Final Review Questions - Test #4
Flashcard
•
University
15 questions
Unit 5B Test Review: Applications of Hypothesis Testing
Flashcard
•
12th Grade
15 questions
Hypothesis Review
Flashcard
•
12th Grade
15 questions
AP Stats - Unit 4 - Hypothesis Tests: Proportions
Flashcard
•
12th Grade
15 questions
AP Statistics Semester Exam Review - Unit 3 MC
Flashcard
•
12th Grade - University
18 questions
JavaScript Variables, Data Types, and Operators Flashcard
Flashcard
•
University
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
Discover more resources for Engineering
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
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
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
20 questions
La Hora
Quiz
•
9th Grade - University
7 questions
Cell Transport
Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University