
DSA_Unit2

Quiz
•
Computers
•
University
•
Medium
Amal Redge
Used 1+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a tree data structure?
A linear data structure
A hierarchical data structure
A type of array
A graph with cycles
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a binary tree, the maximum number of nodes at level ‘L’ is:
2^L
2^(L-1)
2^(L+1)
L^2
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a type of binary tree traversal?
Inorder
Preorder
Postorder
Reverse-order
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a complete binary tree with ‘n’ nodes, the height of the tree is:
log₂(n+1) - 1
log₂(n) + 1
n - 1
2n
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A binary search tree (BST) is a binary tree with the following property:
The left subtree contains greater values than the root
The right subtree contains smaller values than the root
The left subtree contains smaller values and the right subtree contains greater values
No specific rule applies
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a valid binary tree representation?
Linked list representation
Array representation
Stack representation
Pointer representation
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which tree traversal method processes nodes in this order: left subtree → root → right subtree?
Preorder
Inorder
Postorder
Level-order
Create a free account and access millions of resources
Similar Resources on Wayground
21 questions
ADS 1

Quiz
•
University
20 questions
Computer Science

Quiz
•
University
24 questions
Midterm 2 Review Quiz

Quiz
•
University
20 questions
Binary Trees and Graphs Quiz

Quiz
•
University
26 questions
Graph Data Structure - 01

Quiz
•
University
20 questions
2.3.1 Graph Traversal & Path Finding Algorithms

Quiz
•
12th Grade - University
20 questions
TECH FUED ROUND-1

Quiz
•
University
20 questions
Exploring Binary Trees in C#

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade