MCQ Answer

To insert 5 to the third position in list1, we use which command?

To insert 5 to the third position in list1, we use which command?

लिस्ट 1 में 5 से थर्ड पोज़िशन पर इन्सर्ट करने के लिए, हम किस कमांड का यूज़ करते हैं?
Topic : Sequence data types in python

A. list1.insert(3, 5)

B. list1.insert(2, 5)

C. list1.add(3, 5)

D. list1.append(3, 5)




Correct Answer is :

B. list1.insert(2, 5)



Explanation
Execute in the shell to verify.
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