NIELIT O Level Exam

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 से थर्ड पोज़िशन पर इन्सर्ट करने के लिए, हम किस कमांड का यूज़ करते हैं?

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.
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