Multiple choice

There are 10 elements in an array. If 4th element is deleted, position of how many elements is changed?

  1. 7

  2. 8

  3. 6

  4. 5

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In an array of 10 elements, if the 4th element is deleted, the elements from index 5 to 10 must be shifted one position to the left to fill the gap. This affects 6 elements (5th, 6th, 7th, 8th, 9th, and 10th).