
ADSQUIZ

Quiz
•
Computers
•
University
•
Medium
Gouthami Velakanti
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the maximum height of an AVL tree with p nodes?
a) p
b) log(p)
c) log(p)/2
d) p/2
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Why we need to a binary tree which is height balanced?
a) to avoid formation of skew trees
b) to save memory
c) to attain faster memory access
d) to simplify storing
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the balance factor of node 8?
2
-1
+1
-2
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
For the tree below, write the in-order traversal.
a) 6, 2, 5, 7, 11, 2, 5, 9, 4
b) 6, 5, 2, 11, 7, 4, 9, 5, 2
c) 2, 7, 2, 6, 5, 11, 5, 9, 4
d) 2, 7, 6, 5, 11, 2, 9, 5, 4
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Select the code snippet which performs in-order traversal.
public void inorder(Tree root) { System.out.println(root.data); inorder(root.left); inorder(root.right); }
public void inorder(Tree root) { inorder(root.left); System.out.println(root.data); inorder(root.right); }
public void inorder(Tree root) { System.out.println(root.data); inorder(root.right); inorder(root.left); }
public void inorder(Tree root) { inorder(root.right); inorder(root.left); System.out.println(root.data); }
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In a binary search tree, which of the following traversals would print the numbers in the ascending order?
Level order
Preorder
Inorder
Level order
Spiral order
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In postorder traversal of binary tree right subtree is traversed before visiting root.
True
False
Can't say
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
Linux Commands

Quiz
•
University
10 questions
BST 2

Quiz
•
University
15 questions
OS Basics and Admin

Quiz
•
University
10 questions
Quiz despre B Tree

Quiz
•
University
10 questions
DSA Quiz 2

Quiz
•
University
15 questions
Mastering Data Structures

Quiz
•
University
12 questions
Data Structures

Quiz
•
University
14 questions
Tree #1

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