Exam 19: Binary Trees

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

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

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

True

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

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

True

The sequence of operations in a postorder traversal is ____.

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

B

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

(True/False)
4.9/5
(33)

The most common operation performed on a binary tree is a(n) ____.

(Multiple Choice)
5.0/5
(38)

In addition to the inorder, preorder, and postorder traversals, a binary tree can also be traversed level-by-level, which is also known as ____________________ traversal.

(Short Answer)
4.9/5
(45)

All binary tree traversals start at the left-most child node.

(True/False)
4.7/5
(34)

Consider that A is a binary tree, C and D are the subtrees of A.Which of the following statements is always true?

(Multiple Choice)
4.8/5
(38)

The key of the right child below the root node of a search binary tree is 40.The value in the root node could be ____.

(Multiple Choice)
4.9/5
(37)

The item search, insertion, and deletion operations all require the binary tree to be traversed.

(True/False)
4.9/5
(31)

The three traversal algorithms discussed for binary trees are ____, ____, and ____.

(Multiple Choice)
4.9/5
(32)

Duplicates are allowed in a binary search tree.

(True/False)
4.8/5
(43)

The listing of the nodes produced by the preorder traversal of a binary tree is called the ____________________.

(Short Answer)
4.9/5
(34)

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

(Multiple Choice)
4.7/5
(33)

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

(Multiple Choice)
4.8/5
(36)

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

The listing of the nodes produced by the postorder traversal of a binary tree is called the ____.

(Multiple Choice)
4.9/5
(28)

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

When a class object is passed by value, the ____________________ constructor copies the value of the actual parameters into the formal parameters.

(Short Answer)
4.8/5
(41)

Every node in a binary tree has ____ pointers.

(Multiple Choice)
4.9/5
(32)
Showing 1 - 20 of 43
close modal

Filters

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