DSA (Quiz 4) - Trees

DSA (Quiz 4) - Trees

University

20 Qs

quiz-placeholder

Similar activities

PRE-TEST FOR CGP (PRE-FINAL)

PRE-TEST FOR CGP (PRE-FINAL)

University

17 Qs

Transform and Conquer

Transform and Conquer

University

20 Qs

DSA (Quiz 1) Arrays and Linked Lists

DSA (Quiz 1) Arrays and Linked Lists

University

15 Qs

Map and Sorting Algorithms Quiz

Map and Sorting Algorithms Quiz

University

20 Qs

CA Internet

CA Internet

University

20 Qs

2.1.3 Network Topology

2.1.3 Network Topology

University

23 Qs

latsol PH Informatika kelas 11 Jarkom

latsol PH Informatika kelas 11 Jarkom

11th Grade - University

20 Qs

Quiz on Local Area Networks (LANs) Systems and Configurations

Quiz on Local Area Networks (LANs) Systems and Configurations

University

17 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?