assessFunctionAbsence
Check that certain functions or keywords are not present in the learner solution
Syntax
Description
assessFunctionAbsence(
checks that the specific functions or keywords listed in
disAllowedFunctions
)disAllowedFunctions
are not present in the submission of a
script-type solution. If the submission does contain one or more of the functions or
keywords listed, the learner receives a default feedback message:
The submission must not contain the following functions or keywords:
<name1>, <name2>,
...<name
n
>
assessFunctionAbsence(
lets you display specific feedback to the learner if the solution does not pass the
conditions in the assessment test. Use this syntax for script-type problems.disAllowedFunctions
,'Feedback',learnerFeedback
)
assessFunctionAbsence(
checks that the specific functions or keywords listed in
disAllowedFunctions
,'FileName',fileName
)disAllowedFunctions
are not present in the submission of a
function-type solution. If the submission does contain one or more of the functions
or keywords listed, the learner receives a default feedback message:
The submission must not contain the following functions or keywords:
<name1>, <name2>,
...<name
n
>
assessFunctionAbsence(
lets you display specific feedback to the learner if the solution does not pass the
conditions in the assessment test. Use this syntax for function-type problems. You
must provide the function name.disAllowedFunctions
,'FileName',fileName
,'Feedback',learnerFeedback
)
Examples
Input Arguments
Version History
Introduced in R2016a