Exam 20: Binary Trees

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

Binary trees can be divided into:

Free
(Multiple Choice)
4.8/5
(70)
Correct Answer:
Verified

C

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

Free
(Multiple Choice)
4.8/5
(82)
Correct Answer:
Verified

B

When you dereference a pointer to a pointer, the result is:

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

B

The head pointer, anchored at the top of a binary tree, is called the ________.

(Multiple Choice)
4.9/5
(77)

In a binary tree class, you usually have a pointer as a member that is set to ________.

(Multiple Choice)
4.8/5
(94)

Binary trees may be implemented as templates, but any data types used with them must support the ________ operator.

(Multiple Choice)
4.9/5
(100)

In a non-linear linked list, a node can point to:

(Multiple Choice)
4.9/5
(78)

The shape of a binary tree is ________.

(Multiple Choice)
4.9/5
(86)

A subtree is an entire branch of a tree, from one particular node down.

(True/False)
4.9/5
(83)

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

(True/False)
4.8/5
(85)

A node that has no children is known as a ________.

(Multiple Choice)
4.7/5
(67)

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

(Multiple Choice)
4.9/5
(91)

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

(True/False)
4.9/5
(74)

A good reason to use the binary tree structure is:

(Multiple Choice)
4.8/5
(67)

A binary tree can be created using a struct or class containing a data value and ________.

(Multiple Choice)
4.9/5
(87)

Deleting a node that has two children offers an opportunity to use:

(Multiple Choice)
4.8/5
(94)

The binary tree structure is called a "tree" because it resembles an upside-down tree.

(True/False)
4.9/5
(92)

The height of a tree describes how many levels there are in the tree.

(True/False)
4.8/5
(85)

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

(True/False)
5.0/5
(79)

The process of stepping through the nodes of a binary tree is known as ________.

(Multiple Choice)
4.9/5
(90)
Showing 1 - 20 of 38
close modal

Filters

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