Exam 19: Binary Trees

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Values are commonly stored in a binary search tree so that a node's ________ child holds data that is less than the ________ data, while the node's data is less than the data in the other child.

Free
(Multiple Choice)
4.7/5
(33)
Correct Answer:
Verified

B

In certain types of binary trees, the number of leaves can be greater than the number of nodes.

Free
(True/False)
4.8/5
(32)
Correct Answer:
Verified

False

Deleting a leaf node from a binary search tree is not difficult. Deleting a non-leaf node requires several steps.

Free
(True/False)
4.8/5
(35)
Correct Answer:
Verified

True

In a binary search tree, all nodes to the right of a node hold values greater than the node's value.

(True/False)
4.7/5
(37)

Binary trees are commonly used to organize key values that index database records.

(True/False)
4.8/5
(28)

A subtree is the collection of some node, together with all its descendants.

(True/False)
4.8/5
(36)

If a node has no successor, the corresponding pointer is set to

(Multiple Choice)
4.9/5
(36)

The main difference between a binary tree and a linked list is that

(Multiple Choice)
4.8/5
(37)

Binary tree are called "trees" because they resemble an upside-down tree.

(True/False)
4.8/5
(36)

A binary tree node with no parent is called the

(Multiple Choice)
4.9/5
(39)

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

(Multiple Choice)
4.9/5
(30)

The preorder method of traversing a binary tree involves processing the root node's data, traversing the left subtree, and then traversing the right subtree.

(True/False)
4.8/5
(37)

The shape of a binary search tree is

(Multiple Choice)
4.9/5
(36)

Inorder, preorder, and postorder traversals can be accomplished using

(Multiple Choice)
4.9/5
(38)

In a binary search tree where all the stored values are different, the node holding the largest value cannot have two children.

(True/False)
4.7/5
(27)

A binary tree can be created using a structure containing a data value and

(Multiple Choice)
4.7/5
(31)

Visiting all nodes of a binary tree in some methodical fashion is known as

(Multiple Choice)
4.8/5
(39)

Every node in a binary tree can have pointers to

(Multiple Choice)
4.9/5
(33)

A child node that has no parent is

(Multiple Choice)
4.8/5
(39)

The smallest number of levels that a binary tree with three nodes can have is two.

(True/False)
4.9/5
(40)
Showing 1 - 20 of 38
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)