Trees - Data Structures

Trees - Data Structures

University

7 Qs

quiz-placeholder

Similar activities

ICPTP L1: Programming Languages

ICPTP L1: Programming Languages

University

10 Qs

Microcontroller

Microcontroller

11th Grade - University

10 Qs

BCA

BCA

University

10 Qs

CID421 Introduction to 3D CAD SOLIDWORK

CID421 Introduction to 3D CAD SOLIDWORK

University

12 Qs

Python Basic Quiz

Python Basic Quiz

11th Grade - University

10 Qs

Video Watermaking

Video Watermaking

University

11 Qs

PHP Tours Meetup #22 (Super Apéro)

PHP Tours Meetup #22 (Super Apéro)

University - Professional Development

10 Qs

data list control

data list control

University

10 Qs

Trees - Data Structures

Trees - Data Structures

Assessment

Quiz

Computers

University

Hard

Created by

Jeevitha P

Used 76+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following statement about binary tree is CORRECT?

Every binary tree is either complete or full

Every complete binary tree is also a full binary tree

Every full binary tree is also a complete binary tree

A binary tree cannot be both complete and full

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which type of traversal of binary search tree outputs the value in sorted order?

Pre-order

Post-order

In-Order

None

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A binary search tree is generated by inserting in order the following integers:

50, 15, 62, 5, 20, 58, 91, 3, 8, 37, 60, 24


The number of the node in the left sub-tree and right sub-tree of the root, respectively, is

(4, 7)

(7, 4)

(8, 3)

(3, 8)

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In delete operation of BST, we need inorder successor (or predecessor) of a node when the node to be deleted has both left and right child as non-empty. Which of the following is true about inorder successor needed in delete operation?

Inorder Successor is always a leaf node

Inorder successor is always either a leaf node or a node with empty left child

Inorder successor may be an ancestor of the node

Inorder successor is always either a leaf node or a node with empty right child

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the maximum height of any AVL-tree with 7 nodes? Assume that the height of a tree with a single node is 0.

2

3

4

5

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

In the balanced binary tree in the figure given below, how many nodes will become unbalanced when a node is inserted as a child of the node “g”?

1

3

7

8

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Which of the following sequences denotes the post order traversal sequence of the tree?

f e g c d b a

g c b d a f e

g c d b f e a

f e d g c b a