What is displayed when the following program is run?
try:
 

Loading

Choose the correct option.

What is displayed when the following program is run?
try:
    list = 10 * [0]
    x = list[9]
    print(“Done”)
except IndexError: 
    print(“Index out of bound”)
else: 
    print(“Nothing is wrong”)
finally: 
    print(“Finally we are here”)

A. “Done” followed by “Nothing is wrong”
B. “Done” followed by “Nothing is wrong” followed by “Finally we are here”
C. “Index out of bound” followed by “Nothing is wrong” followed by “Finally we are here”
D. “Nothing is wrong” followed by “Finally we are here”

Leave a Comment