CHAPTER 5 : TREES

CHAPTER 5 : TREES

University

30 Qs

quiz-placeholder

Similar activities

Binary Search Tree

Binary Search Tree

University

26 Qs

BDA-UNIT-2

BDA-UNIT-2

University

25 Qs

DSA Quiz - Final

DSA Quiz - Final

University

25 Qs

Graph Data Structure - 01

Graph Data Structure - 01

University

26 Qs

Struktur data Tree

Struktur data Tree

University

30 Qs

3ICTH7H8DSA

3ICTH7H8DSA

University

25 Qs

DBMS Indexing

DBMS Indexing

University

30 Qs

Neo Coding Round 1 Set 1

Neo Coding Round 1 Set 1

University

25 Qs

CHAPTER 5 : TREES

CHAPTER 5 : TREES

Assessment

Quiz

Computers

University

Hard

Created by

Azilah Rahim

Used 3+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the root node in a tree?

The last node in the tree

A node without any children

The first node in the tree

A node with two children

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a binary tree, how many children can a node have at most?

One

Two

Three

Unlimited

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about a binary search tree (BST)?

The left child must have a value greater than the root

The right child must have a value greater than the root

All children must have the same value

The root must be smaller than all children

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a leaf node?

A node that is the root

A node with no children

A node with exactly two children

A node with multiple parents

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the degree of a node in a tree?

The number of siblings

The number of children a node has

The number of parents a node has

The number of leaves in the tree

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which traversal method visits the left subtree, then the root, and finally the right subtree?

Pre-order traversal

Post-order traversal

In-order traversal

Level-order traversal

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of tree allows a node to have at most three children?

Binary Tree

Ternary Tree

N-ary Tree

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?