Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(15) Which of the following ng statements are true? (more than one ans) (5 points) t a. MyArraylist and MylinkedList are two concrete implementations of

image text in transcribed
(15) Which of the following ng statements are true? (more than one ans) (5 points) t a. MyArraylist and MylinkedList are two concrete implementations of Mylist t is implemented using an array. The array is dynamically created th e capacity of the array is exceeded, create a new larger array and copy all the elements from the current array to the new array c. M yLinkedList is implemented using a linked structure. A linked st d. an element. All the nodes are linked together to form a list e. MyAbstractlist partially implements MyList f. All of the above the implementation of MyArrayList, which of the following are true? (more than one ans) (5 points) (16) In a. size never reduces. b. capacity never reduces c. Inside MyArrayList, a regular array is used to store elements d. size is not declared in MyArrayList, but declared in MyAbstractList as protected. e. If the current capacity equals to size, capacity is doubled when a new element is added to MyArrayList All of the above f. In the implementation of MyLinkedList, which of the following are true? (more than one ans) (5 points) (17) a) MyLinkedList has a capacity property. b) b. MyLinkedList has the properties named first and last to point to the nodes in a c) c. If a linked list is empty, first is null and last is null. d) d. If a linked list contains one element, first points to the node and last is null. e) last.next is always nul. f) All of the above linked list. (15) Which of the following ng statements are true? (more than one ans) (5 points) t a. MyArraylist and MylinkedList are two concrete implementations of Mylist t is implemented using an array. The array is dynamically created th e capacity of the array is exceeded, create a new larger array and copy all the elements from the current array to the new array c. M yLinkedList is implemented using a linked structure. A linked st d. an element. All the nodes are linked together to form a list e. MyAbstractlist partially implements MyList f. All of the above the implementation of MyArrayList, which of the following are true? (more than one ans) (5 points) (16) In a. size never reduces. b. capacity never reduces c. Inside MyArrayList, a regular array is used to store elements d. size is not declared in MyArrayList, but declared in MyAbstractList as protected. e. If the current capacity equals to size, capacity is doubled when a new element is added to MyArrayList All of the above f. In the implementation of MyLinkedList, which of the following are true? (more than one ans) (5 points) (17) a) MyLinkedList has a capacity property. b) b. MyLinkedList has the properties named first and last to point to the nodes in a c) c. If a linked list is empty, first is null and last is null. d) d. If a linked list contains one element, first points to the node and last is null. e) last.next is always nul. f) All of the above linked list

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions

Question

What did they do? What did they say?

Answered: 1 week ago

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago