Home / Programming MCQs / Python MCQs / Question

R

Ram Sharma • 188.81K Points
Coach

Q. Which of the following will result in error?
(i) list1[3]=list1[2]
(ii) list1[3]=list1[4]
(iii) list1.insert(1,78)
(iv) list1.pop(50)

Code:
If list1=[10,20,60,50]
(A) i, iii
(B) i, iv
(C) ii, iv
(D) ii, iii

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.