Open-ended responses where multiple valid approaches exist
General Questions
The most flexible question type. General questions use variables and expressions to generate unique instances each time. The answer is evaluated as a Python expression in the context of the generated variables.
Characteristics
Dynamic generation — Variables produce unique numbers/scenarios each attempt
Auto-graded — Correct answer expression is evaluated against the learner's input
Single-line input — Learners type numeric values or short text
Supports constraints — Filter out invalid variable combinations
Marks set per question — Configurable per question for assessments
When to Use
Math and calculation problems
Fill-in-the-blank with variable values
Numeric answers that change per attempt
Short-answer questions with a computable correct answer
Any scenario where you want infinite practice variations
Fill-in-the-Blank with General Questions
Fill-in-the-blank questions are created using the General Question type.
Use string literals like 'Paris' or '1789' as the answer expression for fixed-answer questions,
or use the choice() function with a dictionary lookup to cycle through a pool of items dynamically.
For essay-style responses, use the Long Answer type with a reference answer.
AI compares learner text to your ideal answer for practice feedback and assessment scoring.