The CodeLab question grades the program with tests on the server. The quiz Quiz: question options below has one question for every option; each says how it is set up.
Student
- Write the program, Run it with your input, Run the tests to see which visible tests pass, then Check.
- Each wrong Check may cost a penalty, so try the tests first.
Teacher
- Question bank, Create a new question, CodeLab: language, starting code, solution, tests (input, expected output, hidden, weight, test code).
- Leave the expected outputs empty: they are filled by running the solution when the question is saved, and the solution is checked on every test.
- More, Check CodeLab solutions in the course runs every solution on its tests, for example after a restore.
- As demo teacher, open a question of the quiz below with Preview and then its edit link to see the settings.