Code
A code editor question supporting 17+ languages, initial code templates, AI evaluation, and rubric scoring.
A Code question presents candidates with a full syntax-highlighting code editor. Candidates write or complete code in their chosen programming language. Responses are evaluated using AI, reviewed manually, or assessed with a rubric.
Writing the Question
Write your question prompt using the content editor. The prompt should clearly describe the coding task — what function to implement, what problem to solve, what the expected inputs and outputs are. Use code blocks in the prompt for sample input/output. See Content Editor and Layout.
Language Selection
Choose the programming language for the editor. Supported languages include:
- JavaScript, TypeScript
- Python
- Java
- SQL
- Go, Rust
- C#, C++
- HTML, CSS
- PHP, Ruby
- XML, YAML
- And more
Initial Code Template
Provide an initial code template that appears in the editor when the candidate opens the question. Use this to:
- Define function signatures the candidate must implement
- Provide boilerplate (imports, class structure) so candidates focus on the logic
- Include comments describing what the code should do
AI Evaluation
Enable AI evaluation to automatically score code submissions. Write a grading prompt that describes the expected solution, the criteria for a correct implementation, and how to handle edge cases or partial solutions. The AI evaluates the code and returns a score and feedback. See AI Evaluation.
Rubric Scoring
Attach a rubric to evaluate code submissions against multiple criteria — for example: correctness, code quality, efficiency, readability. Each criterion is scored independently. See Rubric Scoring.
Common Features
Code questions also support: Scoring — Multipliers & Dimensions, Hint, Answer Explanations, Folder & Tags, Preview & Scoring Simulation, and three save modes.