Have any questions?
[email protected]
English
Vietnamese
French
Spanish
Korean
Japanese
Thai
Chinese
Indonesian
Login
Signup
Contact
Login
Home
What is the output of the following program? D = {1 : {'A' : {1 : A}, 2 : B}, 3 :C, 'B' : D, D: 'E'} print(D[D[D[1][2]]], end = ) print(D[D[1][A][2]])
Question 1:
What is the output of the following program?
D = {1 : {'A' : {1 : A}, 2 : B}, 3 :C, 'B' : D, D: 'E'}
print(D[D[D[1][2]]], end = )
print(D[D[1][A][2]])
A.
D C
B.
E B
C.
D B
D.
E KeyError
These questions are from this test. Would you like to take a practice test?
Python Quiz 1 | Englishfreetest.com
20 minutes
10 questions
Do test
Some questions from the same exam
What is the output of the following?
print(Hello {0!r} and {0!s}.format('foo', 'bin'))
What Relationship Is Appropriate For Fruit And Papaya?
Which of the following function gets a space-padded string with the original string left-justified to a total of width columns?
Which of the following data types is not supported in python?
What is the output of the following program?
D = {1 : {'A' : {1 : A}, 2 : B}, 3 :C, 'B' : D, D: 'E'}
print(D[D[D[1][2]]], end = )
print(D[D[1][A][2]])
What is the output of the following?
print('The sum of {0} and {1} is {2}'.format(2, 10, 12))
Which Of The Following Keywords Mark The Beginning Of The Class Definition?
Which of the following function convert an object to a string in python?
What is the output of the following?
print('{:,}'.format('1112223334'))
What is the output of the following program?
D = dict()
for x in enumerate(range(2)):
D[x[0]] = x[1]
D[x[1]+7] = x[0]
print(D)
Some other questions you may be interested in
Which One Piece character is able to sprout body parts on anything except for sea stone?
What One Piece chracter, nicknamed King of Snipers Sogeking, is the crews marksman?
What character from the series One Piece is a blue-nosed reindeer who gained human properties?
Name the Fleet Admiral who commands the Marine in the series One Piece.
In 1935, the Brazilian government presented Eleanor Roosevelt with this gemstone, which is a form of the mineral beryl.
Complete the old joke about questionable stones: Whether its a _________ or a pink sapphire depends on whether youre the buyer or the seller.