Exam 19: Binary Trees

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

Three lines at the end of an arrow in the diagram of a binary tree indicate that the subtree ____.

(Multiple Choice)
4.8/5
(43)

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.9/5
(43)

The operations to do inorder,preorder,and postorder traversals of a binary search tree are the same as those for a binary tree.

(True/False)
4.9/5
(38)

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

(Short Answer)
4.9/5
(29)

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)

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

(Multiple Choice)
4.8/5
(30)

To delete an item from the binary search tree,you must do the following: 1.Find the node containing the item (if any)to be deleted. 2.Delete the node.

(True/False)
4.8/5
(38)

After deleting the desired item from a binary search tree,the resulting tree must be a binary search tree.

(True/False)
4.9/5
(33)

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

(Short Answer)
4.8/5
(36)

Each link in a binary tree node points to a(n)____ of that node.

(Multiple Choice)
4.8/5
(38)

The search function searches the binary search tree for a given item.If the item is found in the binary search tree,it returns ____.

(Multiple Choice)
4.9/5
(44)

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

(Multiple Choice)
4.7/5
(37)

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

(Short Answer)
4.9/5
(34)

Every node in a binary tree has at most ____ children.

(Multiple Choice)
4.8/5
(37)

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

(True/False)
4.8/5
(37)

In a binary tree,the branches go only from a child to a parent.

(True/False)
4.8/5
(33)

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

(True/False)
4.8/5
(41)

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

(Short Answer)
4.9/5
(38)

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

(True/False)
4.9/5
(25)

A binary tree is empty if root is ____.

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

Filters

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