What this Python language-knowledge question tests
This is a medium-difficulty Python question that probes your understanding of how Python's type system and introspection work. It asks you to trace through code and predict output, focusing on how built-in types expose their names and how Python represents them internally.
To answer questions like this, you need to be familiar with the type() function, the __name__ attribute on type objects, and how Python's naming conventions apply to built-in classes. The question rewards careful reading of code behavior rather than deep algorithmic thinking—exactly the kind of detail that matters when debugging or reasoning about dynamic Python code in production systems.
- Type introspection and the
type() built-in - The
__name__ attribute and string representation of types - Python's internal type naming conventions