Question: You have a dynamic array with 3 elements in it and a capacity of 4. The capacity doubles when additional space is needed. Which of
You have a dynamic array with 3 elements in it and a capacity of 4. The capacity doubles when additional space is needed. Which of the options are true? Select all that apply.
you can select multiple options, from none to all:
| a. | The valid indexes to remove from the current array only include 0,1,2 | |
| b. | The valid indexes to remove from the current array only include 0,1,2,3 | |
| c. | The valid indexes to insert into the current array only include 0,1,2 | |
| d. | The valid indexes to insert into the current array only include 0,1,2,3 | |
| e. | If we now perform three appending operations, the capacity of the array will become 8 | |
| f. | If we now perform three appending operations, the capacity of the array will become 6 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
