See the Fill In The Blanks Questions section of the Randomizing Exercises tutorial for more examples of this question type.
Answers in Fill In The Blanks questions are Inputs. They are the blanks that students will fill in when answering the question.
The following actions can be taken on each Input:
Removes the selected Input
There are three types of Inputs, and each have their own settings.
Inserts the selected input into the question input using the appropriate syntax.
Similar to parameterization, inputs can be added to a question by typing their names surrounded by the @ character and curly braces.
There are 3 input types: Text, Number, and Select. Each input can be given Default or Underline style in the input settings.
Text inputs treat answers as strings, and have the following settings:
If this is checked, then capitalization will be important while evaluating the answer. If not, then the answer will be converted to lower case before evaluation.
There are three types of verification for marking short answer questions:
If this is checked, then this input is a bonus question, and isn't needed to get full marks on the question.
Number inputs treat answers as numbers, and have the following settings:
Should the answer be incorrect if it isn't rounded to the correct number of digits?
Tolerance is the acceptable error an answer can have while still being correct. The tolerance type can be units or percent.
If the answer to the question includes units, then they can be included using the Name, Worth (%) and Evaluation Options inputs.
If this is true, then the Value column for this Input will be treated as a formula, and evaluate as if it were R code. If this is false, then the Value column will be treated as a string, and will substitute parameters the same way as the question input.
If this is checked, then this input is a bonus question, and isn't needed to get full marks on the question.
Select Inputs have multiple answers that are all displayed as options in a Select tag. The order of the options will be randomized if the Randomize Answers setting is enabled on the Assignment Settings page.
This example asks the student to fill out a multiplication table with 2 random numbers
It uses 2 variables for the random variables, 3 inputs, and 3 formulas.
All of the inputs for this example are numbers with the same settings
Inputs can be inserted using the substitution syntax @{…}, they can also be inserted using the Add to Question button on the inputs table.
The table includes 4 inputs for the student to fill in, but since it is symmetric, Input-2 can be re-used and inserted multiple times. When marking, both instances of the input are treated as unique, and equally contribute to the overall mark of the question.
By default, tables in the TinyMCE editor are set to take up the full width of the question text. For this example, the question will not look as nice on wide screens. This can be changed in the Table menu.
With the new width as narrow as it is assigned in the image above, it will be stretched to fit the inputs that get inserted into the first and second columns.
This example embeds two different types of inputs into the question text.
The select input has the following options
And the text input has the following settings
The input is not case sensitive, and trims the white space before grading.