51.
Which of the following statement is correct?
a. Tuples are mutable.
b. Tuples are immutable.
c. Tuples and lists are same.
d. All of these are correct.
52.
What will be the output of following code:
t=(4,5,6)
t1=t*2
print(t1)
a. (4,5,6,4,5,6)
b. (4,4,5,5,6,6)
c. (8,10,12)
d. None of the above
53.
What will be the output of :
t=(4,5,6)
del t[1]
print(t)
a. (4,6)
b. ([4,6])
c. [4,6]
d. Error
54.
Which of the following operation is supported in python with respect to tuple t?
a. t[1]=33
b. t.append(33)
c. t=t+t
d. t.sum()
55.
Which of the following statements prints the output (4,5) (4,5)?
t=(4,5,6)
a. print(t[:-1],t[0:2])
b. print(t[3], t[:-3])
c. print(t[2:3], t[3:2])
d. print(t[0,2], t[2,3])