Question: #17 According to the array discipline the correct way to delete/remove the last initialized value in a plain array: A overwrite that value with 0

#17 According to the "array discipline" the correct way to delete/remove the last initialized value in a plain array: A overwrite that value with 0 or -1 or some marker/sentinel value C copy the value to the right of that element over top of the one you want to delete resize the array to have a new .length of exactly count-1 D decrement your count variable #18 According to the "array discipline" the count variable represents. A the number of initialized values in the array Bthe maximum capacity of the array C the number of unused cells in the array D the index of the last initialized element #19 According to the "array discipline" the correct way to append a new value to the end of the array is: (you may assume the array has an empty slot for the new value) A resize the array to .length 1 B shift all the elements one place to the left C copy the new value into array[O] DCopy the new value into arraylcount and increment your count variable #20a Choose the best description for this array: A B C D E a null array a zero length array an empty array a partially filled array a full array #20b Choose the best description for this array: int] arrnew int[0]; A a null array Ba zero length array C an empty array D a partially filled array E a full array
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
