Computer Applications
For inserting of an element in a sorted array, the elements are always shifted to make room for the new entrant. True or False ?
Java Arrays
1 Like
Answer
True
Reason — For inserting of an element in a sorted array, the elements are always shifted to make room for the new entrant, the only exception being when the element is inserted at the end of the array.
Answered By
3 Likes
Related Questions
A binary search of elements in an array requires that the elements be sorted from smallest to largest. True or False ?
The performance of linear search remains unaffected if an unordered array is sorted in ascending order. True or False ?
Name some commonly used sorting techniques.
Show the contents of the array after the second iteration of Selection Sort.