DSA - BST

DSA - BST

University

30 Qs

quiz-placeholder

Similar activities

DATA STRUCTURES WORKSHOP DAY-1

DATA STRUCTURES WORKSHOP DAY-1

University

25 Qs

Binary Trees and Traversals Quiz

Binary Trees and Traversals Quiz

University

30 Qs

UH BAB II

UH BAB II

9th Grade - University

25 Qs

TREES

TREES

University

26 Qs

DSAH5H6ClassTest

DSAH5H6ClassTest

University

25 Qs

EC8393-FDS-WEEKLY TEST 5

EC8393-FDS-WEEKLY TEST 5

University

30 Qs

מחשבים 4

מחשבים 4

11th Grade - University

26 Qs

UAS-UP-ADA-17122021

UAS-UP-ADA-17122021

University

35 Qs

DSA - BST

DSA - BST

Assessment

Quiz

Computers

University

Hard

Created by

Thành Ngọc

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the degree of a node in a tree?
The number of parents it has
The number of siblings it has
The number of children it has
The number of branches connected to it

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which node in a tree has no parent?
Leaf node
Internal node
Root node
Child node

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following best defines a leaf node?
A node with two children
A node with no parent
A node with no child
A node with siblings

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a tree, what is the level of the root node?
1
0
Depends on the tree height
Undefined

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the maximum degree of a binary tree?
1
2
3
Unlimited

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which traversal order corresponds to NLR?
In-Order
Post-Order
Level-Order
Pre-Order

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a binary tree, which traversal visits the left subtree, then the node, then the right subtree?
In-Order
Pre-Order
Post-Order
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?