Report Bug

QusSuppose a list with name arr, contains 5 elements, You can get the 2nd element from the list using? Qusमान लीजिए कि arr नामक सूची में पाँच एलीमेंट्स हैं । आप सूची से दूसरा एलीमेंट.... के उपयोग से प्राप्त कर सकते है ?


A. arr[-2]
B. arr[2]
C. arr[-1]
D. arr[1]


Solution
D. arr[1]



Explanation

All Array and List index  start with 0 (zero) so the second element of array or list refer by index 1 (one) so to access the second element correct statement is arr[1].

Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad