Description Usage Arguments Value Note See Also Examples
Checks studentans against correctans. For true/false
answers only.
1 2 | grade.truefalse(correctans, studentans, tolerance=0.01,
useeval=TRUE, usena=FALSE, useinf=FALSE, quiet=TRUE)
|
correctans |
|
studentans |
|
tolerance |
a |
useeval |
|
usena |
|
useinf |
|
quiet |
|
TRUE if studentans==correctans AND both
studentans and correctans are TRUE or FALSE. FALSE otherwise.
The grade main page contains a discussion of the
common parameters correctans, studentans, useeval, usena,
useinf, quiet. grade.truefalse does not accept usena
or useinf. Setting usena=TRUE or useinf=TRUE will
result in a warning. tolerance is not used in
grade.truefalse. These arguments are included for compatibility
with the other function calls in grade.
1 2 3 4 5 | grade.truefalse(TRUE, TRUE) # TRUE
grade.truefalse(TRUE, "TRUE") # TRUE
grade.truefalse("FALSE", "TRUE") # FALSE
## depending on your environment settings, this next example may work.
#grade.truefalse("F", F) # TRUE if your environment has not redefined 'F'
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.