| NumericGap-class | R Documentation |
Class NumericGap is responsible for creating instances of input fields with
numeric type of answers in question Entry type assessment tasks according
to the QTI 2.1 standard.
response_identifierA character value representing an identifier for the answer. By default, it is generated as 'id_gap_dddd', where dddd represents random digits.
pointsA numeric value, optional, representing the number of points for
this gap. Default is 1.
placeholderA character value, optional, responsible for placing helpful text in the text input field in the content delivery engine.
expected_lengthA numeric value, optional, responsible for setting the size of the text input field in the content delivery engine.
solutionA numeric value containing the correct answer for this numeric entry.
toleranceA numeric value, optional, specifying the value for the upper and lower boundaries of the tolerance rate for candidate answers. Default is 0.
tolerance_typeA character value, optional, specifying the tolerance mode. Possible values:
"exact"
"absolute" - Default.
"relative"
include_lower_boundA boolean value, optional, specifying whether the
lower bound is included in the tolerance rate. Default is TRUE.
include_upper_boundA boolean value, optional, specifying whether the
upper bound is included in the tolerance rate. Default is TRUE.
Entry, TextGap, TextGapOpal and InlineChoice.
ng <- new("NumericGap",
response_identifier = "id_gap_1234",
points = 1,
placeholder = "use this format xx.xxx",
solution = 5,
tolerance = 1,
tolerance_type = "relative",
include_lower_bound = TRUE,
include_upper_bound = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.