assessFunctionAbsence
检查学生答案中是否不包含某些函数或关键字
语法
说明
assessFunctionAbsence( 检查提交的脚本类型的答案中是否不包含 disAllowedFunctions)disAllowedFunctions 中列出的特定函数或关键字。如果提交的答案中确实包含列出的一个或多个函数或关键字,则学生会收到一条默认反馈消息:
The submission must not contain the following functions or keywords: <name1>, <name2>, ...<namen>
如果答案不满足练习测试中的条件,assessFunctionAbsence( 可帮助您向学生显示具体反馈。此语法适用于脚本类型的练习题。disAllowedFunctions,'Feedback',learnerFeedback)
assessFunctionAbsence( 检查提交的函数类型的答案中是否不包含 disAllowedFunctions,'FileName',fileName)disAllowedFunctions 中列出的特定函数或关键字。如果提交的答案中确实包含列出的一个或多个函数或关键字,则学生会收到一条默认反馈消息:
The submission must not contain the following functions or keywords: <name1>, <name2>, ...<namen>
如果答案不满足练习测试中的条件,assessFunctionAbsence( 可帮助您向学生显示具体反馈。此语法适用于函数类型的练习题。您必须提供函数名称。disAllowedFunctions,'FileName',fileName,'Feedback',learnerFeedback)
示例
输入参数
版本历史记录
在 R2016a 中推出