Exam 19: Binary Trees

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

The ____________________ of a path in a binary tree is the number of branches on that path.

(Short Answer)
4.8/5
(26)

In a(n) ____________________ traversal, the binary tree is traversed as follows:1.Visit the node. 2.Traverse the left subtree. 3.Traverse the right subtree.

(Short Answer)
4.8/5
(36)

In a binary tree, the level of the children of the root node is ____.

(Multiple Choice)
4.8/5
(44)

A pointer to the root node of the binary tree is stored outside the binary tree in a pointer variable, usually called the ____.

(Multiple Choice)
4.9/5
(35)

In a diagram of a binary tree, each node is represented as a(n) ____.

(Multiple Choice)
4.7/5
(43)

For classes with pointer data members, you must explicitly overload the assignment operator and include the destructor.

(True/False)
4.9/5
(38)

In a binary search tree, the data in each node is ____ the data in the left child.

(Multiple Choice)
4.9/5
(35)

Let T be a binary search tree with n nodes, in which n > 0.When T is linear, the search algorithm makes ____________________ key comparisons, in the unsuccessful case.

(Short Answer)
4.8/5
(39)

In copying a binary tree, if you use just the value of the pointer of the root node, you get a ____ copy of the data.

(Multiple Choice)
4.7/5
(41)

The level of the root node of a binary tree is 1.

(True/False)
4.7/5
(30)

The ____ of a node in a binary tree is the number of branches on the path from the root to the node.

(Multiple Choice)
4.8/5
(33)

In the diagram of a binary tree, an arrow is called a(n) ____.

(Multiple Choice)
4.7/5
(35)

A binary tree has a special node called the ____ node.

(Multiple Choice)
4.9/5
(37)

After inserting an item in a binary search tree, the resulting binary tree must be a(n) ____________________.

(Short Answer)
4.9/5
(35)

A binary tree is also a(n) ____.

(Multiple Choice)
4.8/5
(36)

The ____________________ of a binary tree is the number of nodes on the longest path from the root to a leaf.

(Short Answer)
4.8/5
(41)

In C++, a function name without any parentheses is considered a pointer to the function.

(True/False)
4.8/5
(32)

Assume the key of the left child below the root node of a binary search tree is 30.The value in the root node could be ____.

(Multiple Choice)
4.7/5
(43)

When traversing a binary tree, the pointer current is initialized to ____.

(Multiple Choice)
4.8/5
(34)

A node in a binary tree is called a(n) ____ if it has no left and right children.

(Multiple Choice)
4.9/5
(40)
Showing 21 - 40 of 43
close modal

Filters

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