Skip to content
Sharp

Type Hints · interview question

Which option describes the most likely pitfall around protocols?

Multiple choiceMediumchapter-10-curatedpremiumtype-hintsprotocols
Choose one answer
Answer and explanation

Correct answer

C. Over-coupling to one concrete class makes testing and substitution harder than necessary.

Why

Over-coupling to one concrete class makes testing and substitution harder than necessary. Calling out that risk matters because this is an interview-friendly topic because it shows you understand behavior-driven design in python.

Test yourself on Type Hints

A free test with instant, explained results. No account needed.

Start free test
All Type Hints questions →