DSA (Quiz 4) - Trees

DSA (Quiz 4) - Trees

University

20 Qs

quiz-placeholder

Similar activities

80-100

80-100

University

20 Qs

CI2214 Chapter 1

CI2214 Chapter 1

University

20 Qs

Kuis_1 IoT_Bab 1

Kuis_1 IoT_Bab 1

University

15 Qs

Titanic Challenge

Titanic Challenge

University

16 Qs

UTS Struktur Data

UTS Struktur Data

University

20 Qs

TIK KELAS 9

TIK KELAS 9

9th Grade - University

20 Qs

PPL 223 ( QUIZ 2) Syntax and Semantics

PPL 223 ( QUIZ 2) Syntax and Semantics

University

20 Qs

DSA (Quiz 4) - Trees

DSA (Quiz 4) - Trees

Assessment

Quiz

Information Technology (IT)

University

Medium

Created by

M'Alou Gonzales

Used 4+ times

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?