Skip to main content
🔒 Preview mode. The first 15 Foundations lessons are free; this one is Pro. Start a 7-day trial to unlock the editor, AI hints and the rest of the curriculum. Card required, cancel any time in Dashboard.
Start 7-day trial →
⚡
← Courses
›
Senior Deep-Dives
›
Module 6 · Architecture & Code Review
›
API design: stability vs ergonomics
quiz
83 / 161
🇺🇸
EN
▼
↗
Share
⋯
More
+100 XP
📋
Task
📖
Theory
🤖
AI Help
Task
📝 **Question:** Why prefer kwargs over positional? 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
🎯 Quiz
Question
📝 **Question:** Why prefer kwargs over positional? 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
A
Kwargs unpack faster at call sites — CPython uses LOAD_NAME instead of LOAD_FAST inside the callee frame.
B
Lets you add/reorder parameters later without breaking callers. Positional locks the order forever.
C
Kwargs are required for any function decorated with `@functools.wraps` or used as a `typing.Protocol` member.
D
Positional arguments break `inspect.signature()` introspection used by FastAPI and Typer auto-docs.
Submit answer
💬 Discussion
Be the first to ask a question or share a tip.
Sign in
to join the discussion. Reading is free.
Loading discussion…