
Binary Trees and Graphs Quiz

Quiz
•
Computers
•
University
•
Hard
RAHUL SONAWANE
Used 2+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a complete binary tree?
A binary tree, which is completely filled, with the possible exception of the bottom level, which is filled from right to left
A tree In which all nodes have degree 2
Each node has exactly zero or two children
A binary tree, which is completely filled, with the possible exception of the bottom level, which is filled from left to right
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In delete operation of BST, we need inorder successor (or predecessor) of a node when the node to be deleted has both left and right child as non-empty. Which of the following is true about inorder successor needed in delete operation?
Inorder successor is always either a leaf node or a node with empty left child
Inorder successor is always either a leaf node or a node with empty right child
Inorder successor may be an ancestor of the node
Inorder Successor is always a leaf node
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following numbers are inserted into an empty binary search tree in the given order: 10, 1, 3, 5, 15, 12, 16. What is the height of the binary search tree (the height is the maximum distance of a leaf node from the root)?
2
4
6
3
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is false about a binary search tree?
The right child is always greater than its parent
In order sequence gives decreasing order of elements
The left and right sub-trees should also be binary search trees
The left child is always lesser than its parent
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of level order traversal?
O(1)
O(n)
O(nlogn)
O(logn)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The Binary Tree in which all leaves are on the same level is called as
Complete Binary Tree
Strictly Binary Tree
Full Binary Tree
Skewed Tree
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
While inserting the elements 71, 65, 84, 69, 67, 83 in an empty binary search tree (BST) in the sequence shown, the element in the lowest level is
67
83
69
65
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Data Structures and Algorithms Quiz

Quiz
•
University
19 questions
Implementasi Jaringan

Quiz
•
University
19 questions
L7 Tree Data Structures Quiz

Quiz
•
University
15 questions
BST , AVL Tree & B-tree

Quiz
•
University
20 questions
UAS Struktur Data

Quiz
•
University
15 questions
LLJ 2

Quiz
•
University
20 questions
FUNDAMENTALS OF ALGORITHMS - UNIT II

Quiz
•
University
15 questions
Data Structures Activity - 1

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University