Tuple in Python Quiz 3

Share with others

Welcome to your Tuple in Python Quiz 3

Q21. Which of the following is/are features of tuple?

Q22. Which of the following is not a tuple?

Q23. Which of the following statement will create an empty tuple?

Q24. Which of the following is a tuple with single element?

Q25. Write the output of the following:

>>>t = (1)

>>>type(t)

Q26. What is the length of the given tuple? >>> t1=(1,2,(3,4,5))

Q27. Write the output of the following:

>>>t1 = (1,2,3,4,5)

>>>t2=t1

>>>t2

Q28. Write the output of the following:

>>>t1= ('a', 'b')

>>>t2 = (1,2,3)

>>>t2+t1

Q29. Which of the following statement will return an error. T1 is a tuple.

Q30. Which mathematical operator is used to replicate a tuple?


Share with others

Leave a Reply

error: Content is protected !!