

MCQOPTIONS
Saved Bookmarks
1. |
What is the output of the following program?D = dict()for i in range (3):for j in range(2):D[i] = jprint(D) |
A. | {0: 0, 1: 0, 2: 0} |
B. | {0: 1, 1: 1, 2: 1} |
C. | {0: 0, 1: 0, 2: 0, 0: 1, 1: 1, 2: 1} |
D. | TypeError: Immutable object |
Answer» C. {0: 0, 1: 0, 2: 0, 0: 1, 1: 1, 2: 1} | |