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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!