Answer the following statements true (T) or false (F)
1. In the class BinaryNodeTree, the public traversal methods each call a protected method that performs the actual recursion.
2. A reference parameter in a protected method does not allow the client code to modify the parameter.
3. In the class BinaryNodeTree, the methods that use the parameter visit can modify the tree’s data, but not its structure.
4 A binary search tree is a binary tree.
5. The postorder traversal of a binary search tree will visit the tree’s data items in sorted order.
1. True
2. False
3. True
4. True
5. False
You might also like to view...
One type of gradient is a ____ gradient,in which the color blending proceeds horizontally or vertically across an object's background.
A. spatial B. linear C. vertical D. horizontal
What does a derived class automatically inherit from the base class?
(a) instance variables (b) static variables (c) public methods (d) all of the above
Double-clicking the ____ tool rotates the selected object around the selected reference point on the Control panel.
A. Skew B. Rotate C. Turn D. Mirror
COGNITIVE ASSESSMENT What involves showing users exactly how they will use the new hardware and software in the system?
A. converting B. training C. testing D. acceptance