What is the expected behavior of the following code?

What is the expected behavior of the following code?

A . it outputs error
B . it outputs list assignment index out of range
C . the code is erroneous and it will not execute
D . it outputs <class ‘ IndexError’ >

Answer: B

Latest PCAP-31-03 Practice Questions with 109 Q&As

Updated Study Material | Instant Download | Detailed Answers and Explanations

Subscribe
Notify of
guest
0 Comments