
DSA + System design - 14

Quiz
•
Computers
•
Professional Development
•
Hard
Puneet Kansal
Used 2+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the time complexity of inserting a node in an AVL tree?
O(1)
O(n)
O(log n)
O(n log n)
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In a Binary Search Tree (BST), which traversal method would give nodes in ascending order?
Pre-order
In-order
Post-order
Level-order
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the maximum number of nodes in a binary tree of height hhh?
2^h + 1
2^(h+1) + 1
h^2
2^h
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In a full binary tree, how many leaves are there if there are nnn internal nodes?
n
n+1
2n
2n+1
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the height of a complete binary tree with n nodes?
logn
log(n+1)
⌊logn⌋
⌈log(n+1)⌉−1
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is a property of red-black trees?
Every leaf is red
No two red nodes are adjacent
Every root is red
All nodes are red
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the time complexity of searching for a node in an unbalanced Binary Search Tree (BST) with nnn nodes in the worst case?
O(1)
O(log n)
O(n)
O(n log n)
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
MCA 2024

Quiz
•
Professional Development
15 questions
Java Chapter 14 Review Questions

Quiz
•
Professional Development
12 questions
R081 Pre-production documents

Quiz
•
11th Grade - Professi...
10 questions
B-Trees

Quiz
•
Professional Development
10 questions
Introduction to Hyperconverged: HCI 101

Quiz
•
Professional Development
15 questions
Online Quiz

Quiz
•
Professional Development
13 questions
Fondamentaux - Activités: OWASP Top 10

Quiz
•
Professional Development
10 questions
IT ENGLISH: Research Project Topics - Docker vs Kubernetes

Quiz
•
Professional Development
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
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development