Steps in Sequential exercises build on one another and are usually used when solving a problem requires several operations, each of which is complex enough to deserve its own instructions and a check on whether it has been done correctly. For example, if you want the student to print a data frame to view NaNs, then drop rows with NaNs and view the output again, this is the perfect type of exercise. Another interesting feature of Sequential exercises is that you can mix exercise types - specifically, Sequential exercises can consist of both Coding and Multiple Choice with Console exercises. This allows you to have a student run some code and then test their ability to interpret the output.
Watch this video that compares Iterative and Sequential exercises to ensure the different use cases for each exercise type are clear.
Sequential exercises should have:
- Maximum context of length 780 characters (recommended is 540).
- Between 2 - 4 steps (recommended is 3).
- Each step should have instructions of length 10 - 240 characters (recommended is 120).
- A total of 4 instructions, regardless of the number of steps, e.g., a two-step exercise can have no more than four instructions, and a four-step exercise can have more no than four instructions. Never more than four instructions.
- If a Sequential exercise includes a Multiple Choice with Console step, it does not contribute to the five multiple choice question per course max.