CBSE Class 12 Computer Science Question 101 of 101

Functions — Question 13

Back to all questions
13
Question

Question 13

Function can alter only mutable data types.

Answer

True

Reason — Functions can alter only mutable data types because mutable data types in Python can be modified in-place, meaning their internal state can be changed by functions. This includes data types like lists, dictionaries, and sets. On the other hand, immutable data types, such as strings, tuples, and numbers, cannot be altered in-place.