Search Header Logo

Binary Trees and Graphs Quiz

Authored by o k

Education

University

Used 2+ times

Binary Trees and Graphs Quiz
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

Tree is a non-linear data structure.

True

False

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The root is the predecessor of all nodes below it.

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The immediate predecessor of a node in a tree is called the root.

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A tree is a collection of nodes and this collection may be empty.

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Implementing a binary tree in a class requires a structure for representing the nodes of the binary tree, as well as a pointer to the structure as a class member. This pointer will be set to

the root of the tree.

the first leaf node.

the leftmost child node.

the deepest leaf node.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A child node that has no parent is

a rootless node

an orphan node

a leaf node

none of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The ________ in a binary tree is analogous to the head pointer in a linked list.

leaf pointer

binary pointer

null pointer

root pointer

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?