CBSE Class 11 Computer Science Question 4 of 114

Tuples — Question 4

Back to all questions
4
Question

Question 4

What values can we have in a tuple? Do they all have to be the same type*?

Answer

No, all the elements of the tuple need not be of the same type. A tuple can contain elements of all data types.