Question 7 (9 points) Use the linked lists contained in the array pictured in Question 6 to answer these questions. Each
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Question 7 (9 points) Use the linked lists contained in the array pictured in Question 6 to answer these questions. Each
Question 7 (9 points) Use the linked lists contained in the array pictured in Question 6 to answer these questions. Each question is to be considered independently of the other questions. a. What is the order in which array positions (indices) appear on the free space list? b. Draw a figure that represents the array after the addition of "delta" to the list. c. Draw a figure that represents the array after the removal of "gamma" from the list. Question 8 (11 points) True or False? Explain your answers. The LargeIntList class a. Uses the "by copy" approach with its elements. b. Implements the List Interface interface. c. Keeps its data elements sorted. d. Allows duplicate elements. e. Uses the LLNode class of the support package. f. Throws an exception if an iteration "walks off" the end of the list. g. Throws an exception if an element is added when it is "full." h. Supports addition of elements at the front of the list, the end of the list, and anywhere in between. i. Can hold objects of any Java class.| j. Has only O(1) operations, including its constructor. k. Provides more than one Iterator.