Skip to content
← 31Memorize

Build note

Generating GRE-style practice questions with code

How I used templates and rules to generate variations of GRE-style quantitative problems.

I turned sample questions into templates. Each one preserves the concept and reasoning while varying the numbers and wording.

A generated percentage problem
A generated percentage problem

For this percentage problem, the parameters allow 5,085,240 possible combinations. The generated distractors reflect common mistakes, such as using the wrong formula or reversing quantities.

Programmatically constructed GRE-style question variants
Programmatically constructed GRE-style question variants

I designed the problems to be solvable with minimal calculator use, so they could test understanding of the underlying concept.

A generated geometry problem
A generated geometry problem
A generated remainder problem
A generated remainder problem
A generated percentage problem with numeric entry
A generated percentage problem with numeric entry

I used the same approach for other quantitative topics. The algebraic comparison below is one of 643,500 possible combinations for its template.

A generated quantitative comparison problem
A generated quantitative comparison problem