Regular Expression
Define questions and answers
Enter the question in the input field. The gaps for the solution input can be defined within the text. Any number of gaps can be created. A more detailed description of how to create a gap can be found in the help section Text entry interaction.
Step by step
In the following, the creation of a task of the type regular expression is explained by means of an example.
1. Step: Design the task
A variable of the type integer is to be correctly defined in the language C. The learner is expected to enter an example of such a variable in the gap.
2. Step: Create the question
In the tab "Question & Answer", enter the question in the text field.
Click on the gap symbol or create a new gap via the button Add gap .
3. Step: Specify the regular expression and optional solution hint
Under Edit gap , you can optionally enter a sample answer or another text in the field Solution hint . The hint is displayed if the user submits an answer which does not lie within the value range of the defined regular expression.
In the text field Regular expression , you can define the value range of the expected solution. Backreferences within the expression are supported by the system.
All other fields and areas can be configured as described in the section Text entry interaction.