Question
Question 52 private fields and methods are inherited. True OR False Question 53 public fields and methods are inherited. True OR False Question 54 protected
Question 52
private fields and methods are inherited.
True OR False
Question 53
public fields and methods are inherited.
True OR False
Question 54
protected fields and methods are inherited.
True OR False
Question 55
Assuming the class B inherits from class A and method foo belongs to class A, what do we mean by overriding method foo in class B?
A. We are calling the method in class A.
B. We are not using method foo in class B.
C. We are coding another version of method foo in class B.
D. None of the above.
Question 56
In a binary search tree, if the value you want to insert is less than the value in the current node, the new node should be inserted in the ________ sub-tree of the current node.
A. Left
B. Right
C. Center
D. none of the above
Question 57
When implementing a queue as a singly-linked list, which of these statements is correct?
A. For better efficiency, nodes should be added at the back and removed at the front.
B. For better efficiency, nodes should be added at the front and removed at the back.
C. There is no difference in efficiency whether nodes are added at the front and removed at the back, or added at the back and removed at the front.
D. You cannot effectively implement a queue as a singly-linked list
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started