Python: In Python, which comparison about Variables, References, and Mutability is accurate?

Difficulty:

Easy

Questions:

1

Time Limit:

2 minutes

Passing Score:

100%

Question

In Python, which comparison about Variables, References, and Mutability is accurate?

  1. There is no practical difference in behavior, performance, or maintainability when Variables, References, and Mutability is involved.
  2. Mutable objects can change in place, while immutable objects require a new object when the logical value changes.
  3. The oldest option related to Variables, References, and Mutability is always the right production choice regardless of workload or context.
  4. Differences around Variables, References, and Mutability are mostly cosmetic, so correctness and debugging quality do not really change.

Hint

Focus on the behavior or tradeoff, not just the keyword.

Answer and rationale

Correct answer: B. Mutable objects can change in place, while immutable objects require a new object when the logical value changes.

Mutable objects can change in place, while immutable objects require a new object when the logical value changes. This is the comparison that usually separates memorization from understanding.

Track: Python