A2 Trees Quiz

A2 Trees Quiz

University

10 Qs

quiz-placeholder

Similar activities

Trees

Trees

University

10 Qs

Binary Search Tree (Recap 1)

Binary Search Tree (Recap 1)

11th Grade - University

13 Qs

Quiz Red-Black Tree

Quiz Red-Black Tree

University

14 Qs

Trees & Binary Tree

Trees & Binary Tree

University

8 Qs

PDS - 04225 Trees - Chapter 6

PDS - 04225 Trees - Chapter 6

University

10 Qs

Data Structure

Data Structure

University

10 Qs

Trees - Data Structures

Trees - Data Structures

University

7 Qs

Data structures

Data structures

University

9 Qs

A2 Trees Quiz

A2 Trees Quiz

Assessment

Quiz

Computers

University

Medium

Created by

A M Abirami

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Assume the level of root node is 1 and the levels of left and right children of root is 2. The maximum number of nodes on level i of a binary tree is

2^i

2^(i-1)

2^(i+1)

2^i + 1

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The maximum number of binary trees that can be formed with three nodes

3

4

5

2

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The height of a tree is the length of the longest root-to-leaf path in it. The maximum and minimum number of nodes in a binary tree of height 4 are

31 and 5

32 and 5

15 and 5

15 and 4

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

When the keys like M, S, G, H, B, V, W, T are inserted into Binary Search Tree, the CORRECT option is

W is an internal node

V is a leaf node

S is a root node

B is a leaf node

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

When the keys like M, S, G, H, B, V, W, T are inserted into Binary Search Tree, the CORRECT option is

Balance Factor of node S is -2

Balance Factor of node S is +2

Balance Factor of node S is -1

Balance Factor of node S is +1

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

When the keys like M, S, G, H, B, V, W, T are inserted into Binary Search Tree, the CORRECT option is

Balance Factor of all nodes are -1, 0 or +1, so the tree is an AVL tree

Balance Factor of node S needs to be altered

Balance Factor of node M needs to be altered

Node S has to be rotated to Right for Height adjustment

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Initially the keys like M, S, G, H, B, V, W, T are inserted into Binary Search Tree. It has been checked and made to an AVL tree. The CORRECT option is

Double rotation (Right, Left) makes the tree into an AVL tree

Single Right rotation makes the tree into an AVL tree

Single Left rotation makes the tree into an AVL tree

Double rotation (Left, Right) makes the tree into an AVL tree

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?