1. Home
  2. Data Science
  3. Python
  4. What is a frozenset in Python?

Added 25 Nov 2026

What is a frozenset in Python?

  1. A sorted set
  2. An immutable set Correct answer
  3. A set of strings
  4. A set limited to 10 items

Correct answer

B. An immutable set

MCQSEXAM

Explanation

frozenset is an immutable, hashable version of set.

Reference

Asked in: Python Interview Sets

https://docs.python.org/3/tutorial/datastructures.html#sets

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs