Exam 17: Tree Structures
Exam 1: Introduction98 Questions
Exam 2: Using Objects76 Questions
Exam 3: Implementing Classes103 Questions
Exam 4: Fundamental Data Types125 Questions
Exam 5: Decisions120 Questions
Exam 6: Loops128 Questions
Exam 7: Arrays and Array Lists118 Questions
Exam 8: Designing Classes95 Questions
Exam 9: Inheritance101 Questions
Exam 10: Interfaces85 Questions
Exam 11: Inputoutput and Exception Handling109 Questions
Exam 12: Object-Oriented Design104 Questions
Exam 13: Recursion110 Questions
Exam 14: Sorting and Searching109 Questions
Exam 15: The Java Collections Framework110 Questions
Exam 16: Basic Data Structures104 Questions
Exam 17: Tree Structures110 Questions
Exam 18: Generic Classes75 Questions
Exam 19: Graphical User Interfaces76 Questions
Exam 20: Streams and Binary Inputoutput82 Questions
Exam 21: Multithreading82 Questions
Exam 22: Internet Networking74 Questions
Exam 23: Relational Databases75 Questions
Exam 24: XML74 Questions
Exam 25: Web Applications75 Questions
Select questions type
Which of the following is NOT a property of a red-black tree?
(Multiple Choice)
4.9/5
(32)
Consider the following tree diagrams:
Which of the above are binary trees?

(Multiple Choice)
4.7/5
(43)
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.

(Multiple Choice)
4.8/5
(37)
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.

(Multiple Choice)
4.7/5
(44)
Consider the following tree diagram:
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:
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)