DSA (Quiz 4) - Trees

DSA (Quiz 4) - Trees

University

20 Qs

quiz-placeholder

Similar activities

Topologi Jaringan dan Karakteristiknya

Topologi Jaringan dan Karakteristiknya

10th Grade - University

15 Qs

Quiz on Local Area Networks (LANs) Systems and Configurations

Quiz on Local Area Networks (LANs) Systems and Configurations

University

17 Qs

H0 - 06 Define la librería Scikit-Learn y Pytorch

H0 - 06 Define la librería Scikit-Learn y Pytorch

University

20 Qs

UML Trial exam 2

UML Trial exam 2

University

17 Qs

LA 1A 2024 - QUIZ P15

LA 1A 2024 - QUIZ P15

University

17 Qs

Recurrence Relations and Algorithms Quiz

Recurrence Relations and Algorithms Quiz

University

15 Qs

CA Internet

CA Internet

University

20 Qs

Struktur Data: Pohon dan Graf

Struktur Data: Pohon dan Graf

9th Grade - University

15 Qs

DSA (Quiz 4) - Trees

DSA (Quiz 4) - Trees

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

M'Alou Gonzales

Used 3+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the root node of a tree?

A node with no parent

A node with two children

A node with no children

A node at the lowest level

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about trees?

Trees can have cycles

Trees can have multiple roots

Trees are a type of graph

Trees cannot be represented using linked lists

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the degree of a node?

Number of ancestors

Number of children

Number of siblings

Number of edges

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which term refers to nodes with the same parent?

Root

Siblings

Leaf

Height

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the height of a tree?

The number of edges from the root to a node

The total number of nodes in the tree

The longest path from the root to a leaf

The number of leaf nodes

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true for a binary tree?

Each node can have at most two children

Each node can have an unlimited number of children

A binary tree can have cycles

The root node always has exactly two children

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which traversal visits the left subtree, then the root, then the 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?