AI Coding Assistant Quiz: How Well Do You Prompt for Code?

Score your ability to get AI to write clean, working code

Ad placeholder (leaderboard)

Test how well you prompt for code

Getting good code out of an AI assistant is a skill of its own. The same model can produce a clean, tested function or a subtly broken one depending entirely on how you ask. This quiz puts you in real scenarios — vague requests, missing context, risky refactors, and the failure patterns that quietly ship bugs — and asks you to pick the prompting move a strong engineer would make.

How it works

Each question describes a situation and offers a few prompting choices. Pick the one you think yields the cleanest, most correct result, then submit to see whether you were right along with a short explanation of the principle behind it. At the end you get a score and a list of topics worth revisiting. There is exactly one best answer per question.

Tips for getting clean code from AI

  • Be concrete. State the language, version, framework, constraints, and an example of the input and expected output. Vague prompts produce vague, often wrong code.
  • Ask for tests. Requesting unit tests alongside the implementation catches errors immediately and forces the model to clarify edge cases.
  • Scope narrowly. One focused request beats “build the whole feature.” Iterate in small, verifiable steps.
  • Never trust output blindly. Read it, run it, and review for security issues — AI-generated code can look right and still be wrong.
Ad placeholder (rectangle)