Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

D Question 1 1 pts Why should we prevent a client\'s direct access to a data str

ID: 3745410 • Letter: D

Question

D Question 1 1 pts Why should we prevent a client's direct access to a data structure? ltisafederal law To protect the job security of the systems analyst The dert cold possalydamage the ATS data Most computer languages do not allow it D Question 2 1 pts The method getindexOf should generally be declared as private False True D Question 3 1 pts According to the text, the ArrayBag puts the first item placed into the bag in the first element of the array, the element whose index is zero False True

Explanation / Answer

Q 1. The client could possibly damage ADT's data.

As API may be used by different clients, Any modification by one client can disrupt the working of other.

Q 2. True. Because it depends upon the class we are using it in.

Q 3. True.

Q 4. True. We should also test methods while implementing the whole class.

Thank you.

Please Rate if you like my efforts. In case of any doubt, I am available in comments.