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