测验学习服务

  • 学生回答测验问题

    answeredQuizQuestions(actor,objectID,reSuccess,reResponse,instructor,parentID);

  • 学生开始一个测验

    attemptedQuiz(actor,objectID,start,instructor);

  • 学生完成一个测验

    completedQuiz(actor,objectID,totalItems,reDuration,end,min,raw,max,instructor);

  • 学生选了答案的选项

    choseCorrectOption(actor,objectID,reResponse,parentID);

  • 学生阅读答题后的补充资讯或提示

    readQuizHints(actor,objectID,hint,reDuration,instructor,parentID);

函式说明

answeredQuizQuestions()

  • 作用:学生回答测验问题
  • 参数:
名称 型态 说明
actor Agent Object 回答问题的人
objectID URL 问题的连结
reSuccess Boolean 答对与否
reResponse String 回答内容
instructor Agent Object 教师
parentID URL 题目所属的测验母活动连结
Example
var actor = visca.setActorByMbox("Crystal","crystal@visca.com");
var objectID = "http://visca.com/question/id/1";
var reSuccess = true;
var reResponse = "king";
var instructor = visca.setInstructorByMbox("Teacher","teacher@visca.com");
var parentID = "http://visca.com/assessment/id/1";

visca.answeredQuizQuestions(actor,objectID,reSuccess,reResponse,instructor,parentID);

attemptedQuiz()

  • 作用:学生开始一个测验
  • 参数:
名称 型态 说明
actor Agent Object 开始测验的人
objectID URL 测验的连结
start ISO 8601 String 测验开始时间
instructor Agent Object 教师
Example
var actor = visca.setActorByMbox("Crystal","crystal@gmail.com");
var objectID = "http://visca.com/assessment/id/1";
var start = "2015-09-21T05:45:30Z";
var instructor = visca.setInstructorByMbox("Teacher","teacher@visca.com");

visca.attemptedQuiz(actor,objectID,start,instructor);

completedQuiz()

  • 作用:学生完成一个测验
  • 参数:
名称 型态 说明
actor Agent Object 完成测验的人
objectID URL 测验的连结
totalItems Integer 题目数量
reDuration ISO 8601 String 花费时间
end ISO 8601 String 测验结束时间
min Decimal number less than max 最低分
raw Decimal number between min and max 得分
max Decimal number greater than min 最高分
instructor Agent Object 教师
Example
var actor = visca.setActorByMbox("Crystal","crystal@visca.com");
var objectID = "http://visca.com/assessment/id/1";
var totalItems = 10;
var reDuration = "PT1H";
var end = "2015-09-21T05:45:30Z";
var min = 20;
var raw = 90;
var max = 90;
var instructor = visca.setInstructorByMbox("Teacher","teacher@visca.com");

visca.completedQuiz(actor,objectID,totalItems,reDuration,end,min,raw,max,instructor);

choseCorrectOption()

  • 作用:学生选了答案的选项
  • 参数:
名称 型态 说明
actor Agent Object 回答问题的人
objectID URL 问题的连结
reResponse String 回答内容
parentID URL 题目所属的测验母活动连结
Example
var actor = visca.setActorByMbox("Crystal","crystal@visca.com");
var objectID = "http://visca.com/question/id/2";
var reResponse = "king";
var parentID = "http://visca.com/assessment/id/1";

visca.choseCorrectOption(actor,objectID,reResponse,parentID);

readQuizHints()

  • 作用:学生阅读答题后的补充资讯或提示
  • 参数:
名称 型态 说明
actor Agent Object 阅读问题提示的人
objectID URL 问题的连结
hint String/Activity Object/URL Hint or feedback revealed
reDuration ISO 8601 String 阅读提示/补充资料的时间
instructor Agent Object 教师
parentID URL 题目所属的测验母活动连结
Example
var actor = visca.setActorByMbox("Crystal","crystal@visca.com");
var objectID = "http://visca.com/question/id/2";
var hint = "Your hint!";
var reDuration = "PT1M10S";
var instructor = visca.setInstructorByMbox("Teacher","teacher@visca.com");
var parentID = "http://visca.com/assessment/id/1";

visca.readQuizHints(actor,objectID,hint,reDuration,instructor,parentID);

results matching ""

    No results matching ""