Changing the positions of two elements with each other is called:
ASampling
BStamping
CSwapping
DSweeping
Answer & Solution
Correct answer: C. Swapping
1. Sorting works by moving elements past one another.
2. The basic move exchanges two of them.
3. Swapping two elements means changing their positions with each other.
4. So the answer is swapping.
_Source: syllabus Computer Science, Ch 5 'Sorting' and Ch 6 'Searching'_
Keep practising Sorting and Searching
Browse all Sorting and Searching questions for IGNOU MCA, or explore more Computer Science topics.