Exam 17: Tree Structures

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

Which of the following is NOT a property of a red-black tree?

(Multiple Choice)
4.9/5
(32)

Consider the following tree diagrams: Consider the following tree diagrams:   Which of the above are binary trees? Which of the above are binary trees?

(Multiple Choice)
4.7/5
(43)

Consider the following binary search tree diagram: Consider the following binary search tree diagram:   If node D is to be removed, which action should be taken? Use the technique presented in the textbook. If node D is to be removed, which action should be taken? Use the technique presented in the textbook.

(Multiple Choice)
4.8/5
(37)

Consider the following binary search tree diagram: Consider the following binary search tree diagram:   If node F is to be removed, which action should be taken? Use the technique presented in the textbook. If node F is to be removed, which action should be taken? Use the technique presented in the textbook.

(Multiple Choice)
4.7/5
(44)

A binary tree of height h can have up to ____ nodes.

(Multiple Choice)
4.9/5
(42)

Consider the following tree diagram: Consider the following tree diagram:   Which arithmetic expression is represented by this tree? Which arithmetic expression is represented by this tree?

(Multiple Choice)
4.9/5
(35)

A binary search tree is made up of a collection of nodes organized with smaller data values on the left and greater values on the right, relative to any node. Which of the following Node references must be instance variables of any implementation of a BinarySearchTree class? I root II left III right

(Multiple Choice)
4.8/5
(37)

Consider the following tree diagram: Consider the following tree diagram:   Which of the following nodes are child nodes? Which of the following nodes are child nodes?

(Multiple Choice)
4.8/5
(35)

Which of the following statements about binary trees is correct?

(Multiple Choice)
4.8/5
(28)

Given the Visitor interface discussed in section 17.4 (shown below), select a statement to complete the class CodeFinder. The class is to be used when traversing a binary tree while displaying every data value that contains the code "007". public interface Visitor { Void visit(Object data); } Class CodeFinder implements Visitor { Public void visit(Object data) { If (______________________________) { System.out.println(data); } } }

(Multiple Choice)
4.7/5
(37)
Showing 101 - 110 of 110
close modal

Filters

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