DSA (Quiz 4) - Trees

DSA (Quiz 4) - Trees

University

20 Qs

quiz-placeholder

Similar activities

GDG ANDROID BOOTCAMP QUIZ

GDG ANDROID BOOTCAMP QUIZ

University

20 Qs

SOAL IoT

SOAL IoT

University

15 Qs

Quiz Application Modelling

Quiz Application Modelling

University

20 Qs

Data Structure Quiz

Data Structure Quiz

University

21 Qs

DATA STRUCTUIR Quiz1 (AIML)

DATA STRUCTUIR Quiz1 (AIML)

University

20 Qs

Kelas 9 - Halaman 23 (UH Bab 1)

Kelas 9 - Halaman 23 (UH Bab 1)

9th Grade - University

20 Qs

UH_TIK (XI)

UH_TIK (XI)

11th Grade - University

25 Qs

BSc Lab Component

BSc Lab Component

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?