Search Header Logo

DSA (Quiz 4) - Trees

Authored by M'Alou Gonzales

Information Technology (IT)

University

Used 4+ times

DSA (Quiz 4) - Trees
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?