Keyword Fill-in

Keyword Fill-in

All Games

A keyword has been removed from each snippet. Choose the correct one from four options.

Choose Difficulty
8 questions per round

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

  1. Choose a difficulty: Easy, Medium or Hard.
  2. Read the snippet and pick the missing keyword.
  3. 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. def exists in Python and Ruby but not in JavaScript; let exists 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.

Related