Skip to main content

Section 17 Dynamic Exercises

This section demonstrates the use of dynamic randomized exercises built upon the framework of Runestone components. These demonstration problems incorporate a library supporting mathematical expressions both for varying the content of the statement of the exercises as well as the checking of submitted answers. Then there is an example where a custom library is used for defining and parsing answer objects without using the built-in math library, and which also illustrates the use of a config structure passed in JSON format.

Exercises Dynamic Fill-In

The first problem illustrates revised markup for fill-in problems that don’t involve randomization and use simple string and number comparison tests. Later exercises illustrate the use of dynamically generated mathematical expressions.

1. Fill-In, String and Number Answers.

2. Fill-In, Multiple Strings, Custom Checker.

3. Fill-In Formula (Dynamic).

4. Decompose the Function.

5. Fill-In, Remaining Machinery.

6.