DSA_Unit2

DSA_Unit2

University

25 Qs

quiz-placeholder

Similar activities

MS 101 - Week 16 - Graph

MS 101 - Week 16 - Graph

University

20 Qs

Data structure computer

Data structure computer

University

21 Qs

TREES

TREES

University

20 Qs

DSA_Quiz_3

DSA_Quiz_3

University

20 Qs

1 Binary Search Trees

1 Binary Search Trees

University

20 Qs

Types of Trees

Types of Trees

University

25 Qs

QUIZ

QUIZ

University

25 Qs

Binary Trees and Graphs Quiz

Binary Trees and Graphs Quiz

University

20 Qs

DSA_Unit2

DSA_Unit2

Assessment

Quiz

Computers

University

Medium

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?