= Bolt Tutorial, part II: Exercises = Now let's add an exercise. Create a file '''exercise1.php''': {{{ }}} and edit conifer.php: {{{ }}} The course structure is now [[Image(ex.png, nolink)]] Start the course from the beginning. When you get to the exercise you'll see [[Image(bolt_ex.jpg, nolink)]] You'll then see either [[Image(bolt_right.jpg, nolink)]] or [[Image(bolt_wrong.jpg, nolink)]] depending on whether you answered the question correctly. Some notes: * The correct answer is always the first choice listed. Bolt automatically randomly reorders the choices to remove any ordering effects. * The exercise page is used to generate both the exercise and the answer page. * If you look at your course history, you'll see that Bolt has stored your answers to the exercise, and your score, in its database. == Reviewing and repeating exercises == Suppose the student doesn't perform the exercise correctly, and you want to let them (or require them to) review the lessons and repeat the exercise? Bolt provides a powerful mechanism for this, called '''exercise sets'''. To illustrate this, first let's create a new exercise, '''conifer_ex2.php''': {{{ }}} [[Image(ex_set.png, nolink)]]