
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
8 questions
FOS Ch.1 PArt 4 (QUIZ 4)

Quiz
•
University
10 questions
Trees

Quiz
•
University
15 questions
Tree Traversals

Quiz
•
University
13 questions
Graph Traversal Algorithms Quiz

Quiz
•
12th Grade - University
10 questions
Technical Quiz DSA

Quiz
•
University
15 questions
Data structures Viva2

Quiz
•
University
11 questions
Binary Search Trees

Quiz
•
University
9 questions
Data structures

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