DSA_Unit2

DSA_Unit2

University

25 Qs

quiz-placeholder

Similar activities

Introduction to Tree Data Structure (TDS)

Introduction to Tree Data Structure (TDS)

University

20 Qs

Data Structures and Algorithms Quiz - BATCH 1

Data Structures and Algorithms Quiz - BATCH 1

University

23 Qs

DSA_Quiz_3

DSA_Quiz_3

University

20 Qs

1 Binary Search Trees

1 Binary Search Trees

University

20 Qs

Data Structures - Tree

Data Structures - Tree

University - Professional Development

20 Qs

DSA - Binary Tree 2-3

DSA - Binary Tree 2-3

University

20 Qs

FUNDAMENTALS OF ALGORITHMS - UNIT II

FUNDAMENTALS OF ALGORITHMS - UNIT II

University

20 Qs

DSA_Midterm Quiz no. 1

DSA_Midterm Quiz no. 1

University

25 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?