Question 132Asked in CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)

What is the best approach to delete an element from an unsorted array?

  1. AShift all elements left after deletion
  2. BReplace the element with the last element and reduce the array size
  3. CSort the array and then delete
  4. DReplace the element with 0
Show answerHide answer

Correct answer: (B) Replace the element with the last element and reduce the array size

From CIL MT Systems PYQ, 24 Aug 2026 (3:00 PM, CBT-26)

This is question 132 of CIL MT Systems PYQ, 24 Aug 2026 (3:00 PM, CBT-26). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.