A Powerful Tool for Programming Instruction
CodeLab is the web-based interactive programming exercise system for
First offered in 2002 to reduce attrition and raise the overall level of the class,
it is a seasoned system that has been used in over 400
institutions in 20 countries and analyzed over eighty-five million
exercise submissions from more than 200,000 students.
A CodeLab has 200-800 short exercises, each focused on a particular
programming idea or language construct. The student types in code and
the system immediately judges its correctness, offering hints when the
submission is incorrect. Through this process, the student gains mastery
over the semantics, syntax and common usage of the language elements.
Below are a few
exercises from the Arrays and Recursion sections of the C++ CodeLab.