List in Python Quiz 4

Share with others

Welcome to your List in Python Quiz 4

Q31. Write the output of the following:

L=["Amit","Sumit","Naina"]
L1=["Sunil"]
print(L + L1)

Q32. Result of list slice is also a list?(T/F)

Q33. What we call the operation which is used to extract particular range from a sequence.

Q34. Index of last element in list is n-1, where n is total number of elements.(T/F)

Q35. Write the output of the following :

L=[2 * x for x in range(3,14,3)]
print(L)

Q36. Write the output of the following :

L=["Amit","Sumit","Naina"]
L1=["Sumit"]
print(L - L1)

Q37. Write the output of the following:

L=[1,5,9]
print(sum(L)+max(L)-min(L))

Q38. Which mathematical operator is used for repetition?

Q39. Following two print statement will return same result.(T/F)

L1 = [1, 5, 9]
L2 = [2, 3, 4]
print(L1 + L1)
print(L1 * 2)

Q40. Which of the following is not list operation?


Share with others

Leave a Reply

error: Content is protected !!