Report Bug

QusWhat happens if you attempt to access an index that is out of range in a list? Qusयदि आप किसी ऐसे इंडेक्स तक पहुँचने का प्रयास करते हैं जो किसी लिस्ट के रेंज से बाहर है तो क्या होगा?


A. It returns None.
B. It raises an IndexError
C. It creates a new element at that index.
D. It returns an empty list.


Solution
B. It raises an IndexError



Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad