Review of Python Quiz 6

Share with others

Welcome to your Review of Python Quiz 6

Name
Email
School Name
Q51. Write the output of the following:

d = {}d[3]=15d['3']=4d[3.0]=5print(d)

Q52. Evaluate : 3 + 4%2 **2 + 3/2 -3

Q53. Write the output of the following:

i=4while(i<10):    print(i+4,end="-")    i=i+7else:   print(5)

Q54. Write the output of the following:

a = {1 :12, 2:13, 3:15}del a[2]print(a)

Q55. Write the output of the following:

a = {1 :12, 2:13, 3:15}print(a[2])

Q56. Identify the invalid identifier.

Q57. Choose the final datatype of variable 's' in the following code.

s = "ip"s = ("ip")s = ["ip"]print(type(s))

Q58. Write the output of the following:

L = [23, 45, "the", 12, 32, 63]print(L[2][1])

Q59. ____________ loop is preferred when we don't know the number of iterations in Python.

Q60. Write the output of the following:

L = [23, 45, False, 12, 32, 63]print(min(L))

Share with others
error: Content is protected !!