CBSE Class 11 Computer Science Question 79 of 88

Tuples and Dictionary — Question 5

Back to all questions
5
Question

Question 5

A tuple can be used as the key in a dictionary if it contains immutable elements.

Answer

True

Reason — A tuple can be used as a key in a dictionary if all the elements within the tuple are immutable. This is because dictionary keys must be unique and immutable.