Code questions
A code question is a multi-file editor plus weighted test cases. The same editor is used on exams, exercises, and the question bank.
Languages
C, C++, Python, Java, C#, VB.NET, PHP, Dart, R, NASM32, NASM64, MIPS, HTML, and JavaScript.
HTML and JavaScript are graded in the browser when the student finishes or when you Run and Save on Results. The other languages compile on the server. Correct All recompiles the server-graded languages on the drawn paper.
The first file is named for the language (main.cpp, Main.java, main.py, and so on). Students may add pages and rename any file that is not the main file.
Cases
Each case has an input, an expected output, and a weight. Weights roll up to the question mark.
- Weight 0 and Show as sample run — the student sees this case and it does not score.
- Ignore case / spaces / lines — formatting noise does not fail a fair answer.
- Output contains — a substring check, useful for HTML and JavaScript.
- Generate Cases can mark the first N successful cases as sample runs at weight 0 and split 100% across the rest.
Optional input and output hints render under the stem. They are not the key.
Turn Auto-grading on when Run and Finish should score the cases. Show mark on run reveals the score in the player. Hidden cases still score.
What students should do
Run shows case cards. Save stores the official answer. The editor also keeps an auto-save history. Finish, Results, and Grades combine those so a good run is not lost if the student never reopened the question. See Grade Results.
Reuse
Export one code question to Word (stem, hints, cases, starter, key, and linked CLOs) from the exam, exercise, or bank grid. Packs of questions move as a zip or as text — see Import, Export & Randomize.