The first element in a list has which index value?
A1
B2
C3
D0
Answer & Solution
Correct answer: D. 0
1. Indexing in these algorithms does not start at one.
2. The opening position is numbered from zero.
3. The first element in a list has index value 0.
4. So the answer is 0.
_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.