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

(10%): Answer True or False to the following problems. A) It is not possible to

ID: 3695146 • Letter: #

Question

(10%): Answer True or False to the following problems.

A) It is not possible to use a list without knowing how it is implemented. _______

B) A constructor is implicitly called when a class object is declared. ________

C) In array-based implementation, the algorithm for deleting from an unsorted list has the last item replace the item being deleted. ___________

D) If the maximum number of components in a list ADT is difficult to predict, it is better to represent the list as a dynamic linked list than to use a direct array representation.   ________

E) If random access to individual components of a list ADT occurs frequently, it is better to represent the list directly as an array than to use a linked list.   _________

Explanation / Answer

A)False, It is possible to use a list without knowing how it is implemented.

B)True,constructor is implicitly called when a class object is declared.

C)True,In array-based implementation, the algorithm for deleting from an unsorted list has the last item replace the item being deleted.

D)True,maximum number of components in a list ADT is difficult to predict, it is better to represent the list as a dynamic linked list than to use a direct array representation

E)False,random acess of elements of alist cours normally,its not necessry to represent the list directly as an array then to use linked list