Keyword Fill-in
Keyword Fill-in
All GamesA keyword has been removed from each snippet. Choose the correct one from four options.
About the Keyword Fill-in Game
Every language is built on a small set of keywords — for, return, const, def, public, WHERE, import, typeof. Keyword Fill-in removes one keyword from a short snippet and asks you to choose the right one from four options.
Snippets come from JavaScript, Python, SQL and C#. There are three difficulty levels with eight questions per round, and each answer comes with an explanation of why that keyword is the correct one. A review of all questions is shown at the end.
How to play
- Choose a difficulty: Easy, Medium or Hard.
- Read the snippet and pick the missing keyword.
- Read the explanation and continue. Review your answers at the end of the round.
Tips for a better score
- Look at what comes immediately after the gap — a variable name, a condition or a type often decides which keyword fits.
- Identify the language first.
defexists in Python and Ruby but not in JavaScript;letexists in JavaScript and Swift but not in Python. - In SQL, remember the clause order:
SELECT,FROM,WHERE,GROUP BY,HAVING,ORDER BY. - On Hard, several options may be valid keywords — pick the one that makes the code behave as intended.
Frequently asked questions
Which languages are included?
JavaScript, Python, SQL and C#.
How is it different from Fix the Bug?
Fix the Bug asks you to find a mistake in otherwise complete code. Keyword Fill-in tests whether you know which keyword a construct needs.
Is it good for learning a new language?
Yes. Seeing keywords in context across several languages helps you remember how each one expresses loops, functions, conditions and imports.
How many questions are in a round?
Eight, drawn from the difficulty you selected.