List in Python Quiz 3

Share with others

Enter details and click on Next

Name
Email
School Name
Q21. Write the output of the following

L = "123456"
L = list(L)
print(type(L[0]))

Q22. Write the output of the following:

T=(1,2,3,4,5.5)
L = list(T)
print(L[3]*2.5)

Q23. Index value in list and string start from 0(T/F)

Q24. Write the output of the following:

T=(1,2,3,4,5.5)
L = list(T)
print(L*2)

Q25. Write the output of the following:

T = [1,2,3,4]
T1 = [3,4,5,6]
T2 = T + T1
print(T2)

Q26. Write the output of the following:

T = [1,2,3,4]
T1 = [3,4,5,6]
T2 = T.append(T1)
print(T2)

Q27. del statement can delete the following from the List?

Q28. Write the output of the following:

T = [1,2,3,4]
T1=T
T[0] = "A"
print(T)
print(T1)

Q29. What type of error is returned by the following statement?

T = [1,2,3,4]
print(T.index(9))

Q30. Write the output of the following.

T = [1,2,3,4]
T1=[5,6,7]
L=T.append(T1)
print(L)


Share with others

Leave a Reply

error: Content is protected !!