
Midterm Review
Flashcard
•
Engineering
•
University
•
Practice Problem
•
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.
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
16 questions
Facts About Elephants
Flashcard
•
12th Grade
15 questions
Obligaciones Legales en el Turismo Mexicano
Flashcard
•
12th Grade
15 questions
Lecture 1 - Levels of organisation and body systems
Flashcard
•
12th Grade
20 questions
Chapter 6
Flashcard
•
University
19 questions
Factors Influencing Enzyme Activities
Flashcard
•
University
21 questions
Environmental Awareness and Global Warming
Flashcard
•
KG
11 questions
Investigaciones Arqueológicas en San Andrés
Flashcard
•
University
22 questions
Conflicto de los Siglos - Capítulo 10
Flashcard
•
12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Engineering
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
5 questions
Helping Build the Internet: Valerie Thomas | Great Minds
Interactive video
•
11th Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
19 questions
Review2-TEACHER
Quiz
•
University
15 questions
Pre2_STUDENT
Quiz
•
University
20 questions
Ch. 7 Quadrilateral Quiz Review
Quiz
•
KG - University