Exam 19: Binary Trees

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

The number of nodes in a binary tree is the number of nodes in its left subtree plus the number of nodes in its right subtree.

Free
(True/False)
4.9/5
(44)
Correct Answer:
Verified

False

Every node in a binary tree can have pointers to

Free
(Multiple Choice)
4.9/5
(44)
Correct Answer:
Verified

D

The width of a tree is the largest number of nodes at the same level.

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

True

An operation that can be performed on a binary search tree is

(Multiple Choice)
4.8/5
(40)

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.8/5
(32)

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

(True/False)
4.8/5
(37)

Inorder, preorder, and postorder traversals can be accomplished using

(Multiple Choice)
4.8/5
(38)

Binary search trees are commonly used

(Multiple Choice)
4.7/5
(35)

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

(True/False)
5.0/5
(48)

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
(35)

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

(Multiple Choice)
4.8/5
(37)

Output will be the same if you use inorder, postorder, or preorder traversals to print the values stored in a binary tree.

(True/False)
4.8/5
(39)

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

(Multiple Choice)
4.9/5
(34)

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

(True/False)
4.8/5
(34)

A node that has no children is a

(Multiple Choice)
4.8/5
(36)

A tree with a height of three must have

(Multiple Choice)
4.9/5
(38)

There exists a binary tree with a hundred nodes, but only one leaf.

(True/False)
4.8/5
(37)

Deleting a node from a binary search tree node

(Multiple Choice)
4.9/5
(39)

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

(True/False)
4.9/5
(33)

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

(Multiple Choice)
4.9/5
(42)
Showing 1 - 20 of 37
close modal

Filters

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