Exam 19: Binary Trees

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

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

The inorder method of traversing a binary tree involves traversing the left subtree, processing the data in the root, and then traversing the right subtree.

(True/False)
4.8/5
(35)

A node that has no children is a

(Multiple Choice)
4.8/5
(29)

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

(Multiple Choice)
4.8/5
(24)

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.

(True/False)
4.8/5
(44)

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

(Multiple Choice)
4.8/5
(46)

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

(Multiple Choice)
4.8/5
(41)

When a binary tree is used to facilitate a search, it is referred to as a

(Multiple Choice)
4.7/5
(41)

A program keeps track of a binary tree using a pointer to

(Multiple Choice)
4.9/5
(35)

Binary search trees are commonly used

(Multiple Choice)
4.9/5
(27)

A strong reason to use a binary search tree is

(Multiple Choice)
4.9/5
(36)

When an application begins searching a binary search tree, it starts at

(Multiple Choice)
4.8/5
(34)

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

(True/False)
4.8/5
(39)

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

(True/False)
4.9/5
(29)

One method of traversing a binary tree is

(Multiple Choice)
4.9/5
(36)

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

(True/False)
4.9/5
(37)

Deleting a node from a binary search tree node

(Multiple Choice)
4.9/5
(37)

A tree with a height of three must have

(Multiple Choice)
4.9/5
(41)
Showing 21 - 38 of 38
close modal

Filters

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