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
  1. Write the program, Run it with your input, Run the tests to see which visible tests pass, then Check.
  2. Each wrong Check may cost a penalty, so try the tests first.
Teacher
  1. Question bank, Create a new question, CodeLab: language, starting code, solution, tests (input, expected output, hidden, weight, test code).
  2. 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.
  3. More, Check CodeLab solutions in the course runs every solution on its tests, for example after a restore.
  4. As demo teacher, open a question of the quiz below with Preview and then its edit link to see the settings.