A. Given: List1 = [‘a’,’b’,’c’,’d’,’e’] and List2= [1, 2, 3]. What is the return value of each of the following statements?
a. ice b. List1+List2
c. List2*2 d. 2*List2
B. Given: List1 = [100,200,400,500]. What is the return value of the following statements?
a. min(List1) b. max(List1)
c. sum(List1) d.) List.count(400)
e. List1.count(100)+List1.count(200)
C. Given: List1 = [12, 23, 45, 23]. What is the return value of the following statements?
a. List1*List1.count(23 ) b. List1+List1[:]
c. List1+List1[-1:] d. List1+List1[::]
e. List1+List1[::-1]
D. Given: List Lst = [10,23,5,56,78,90]. Evaluate the following expressions.
a. Lst[:] b. Lst[0:4]
c. Lst[:-1] d. Lst[-1:]
e. Lst[-1] f. Lst[::-1]
g. Lst[:-1:] h. Lst[:-2:]
E. Given: List1= [12, 45, 7, 89, 90]. What is the return value of the following statements?
a. List1.reverse() b. List1.sort()
c. List1.appned(10) d. List.pop(2)
e. List1.clear()
F. What is the error in the following program?
List1=[‘a’,’b’,’c’,’d’]
List2=[]+List1
List1[1]=’f’
print(List1*List2)
print(List2)