
ADSQUIZ
Authored by Gouthami Velakanti
Computers
University
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
10 questions
Python Quiz
Quiz
•
University
15 questions
Introduction to Django Framework Quiz
Quiz
•
University
10 questions
Quiz on Stacks and Data Structures 2
Quiz
•
University
10 questions
Bertelsmann AI Track Quiz Initiative #1
Quiz
•
University - Professi...
10 questions
MS Office
Quiz
•
University
14 questions
LA5.C5: Branching and Subroutines
Quiz
•
9th Grade - University
10 questions
A level Computer Science In-fix post-fix Reverse polish
Quiz
•
10th Grade - University
15 questions
ENGINEERING DATA ANALYSIS PRELIM
Quiz
•
University
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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University