(自訂) 測驗學習服務

  • 學生回答測驗問題

    customizedAnsweredQuizQuestions(actor, verb, object, result, context, authority, timestamp);

  • 學生開始一個測驗

    customizedAttemptedQuiz(actor, verb, object, result, context, authority, timestamp);

  • 學生完成一個測驗

    customizedCompletedQuiz(actor, verb, object, result, context, authority, timestamp);

  • 學生選了答案的選項

    customizedChoseCorrectOption(actor, verb, object, result, context, authority, timestamp);

  • 學生閱讀答題後的補充資訊或提示

    customizedReadQuizHints(actor, verb, object, result, context, authority, timestamp);

函式說明

customizedAnsweredQuizQuestions()

  • 作用:學生回答測驗問題
  • 參數:表A
名稱 屬性 說明 必要性
actor Agent Object 主詞。此語句的擁有者,物件格式請參考表1 必要
verb Object 動詞。學生或學習小組之動作,物件格式請參考表2 必要
object Object 對象。可以為活動、動作者或者為另一個語句物件。預設為活動物件,物件格式請參考表3 必要
result Object 此語句之結果。可依照對應的動詞取得對應結果。物件格式請參考表6 必要
context Object 描繪此語句之情境,物件格式請參考表4 必要
authority Object 語句擁有者,物件格式請參考表5 選填
timestamp ISO 8601 String 時間戳記 選填
Example
var actor = visca.setActorByMbox("Crystal","mailto:crystal@visca.com");
var verbDisplay = visca.setDisplay("zh-TW","回答");
var verb = visca.setVerb("http://adlnet.gov/expapi/verbs/answered",verbDisplay);
var objectID = "http://visca.com/question/id/3";
var defName = visca.setName("zh-TW","3");
var defDescription = visca.setDescription("zh-TW","哪一個人最帥?");
var defType = "http://adlnet.gov/expapi/activities/cmi.interaction";
var alignment = visca.setExtension("alignment",["社4-4-2-4","語1-1-1-2"]);
var bloomsLevel = visca.setExtension("blooms-level","Applying");
var defExtensions = visca.setExtensions(alignment,bloomsLevel);
var defInteractionType = "choice";
var defCorrectResponsesPattern = visca.setCorrectResponsesPattern("king");
var choiceKing = visca.setDescription("zh-TW","金城武");
var choiceMing = visca.setDescription("zh-TW","明金城");
var defChoices = visca.setChoices("king",choiceKing,"ming",choiceMing);
var objectDef = visca.setDefinition(defName,defDescription,defType,defExtensions,defInteractionType,defCorrectResponsesPattern,defChoices);
var object = visca.setObject(objectID,objectDef);
var reDuration = "PT20S";
var reScore = visca.setScore(0,10,10);
var reSuccess = true;
var reResponse = "king";
var result = visca.setResult(reDuration,null,reResponse,reScore,reSuccess);
var instructor = visca.setInstructorByMbox("Teacher","mailto:teacher@visca.com");
var platform = "http://visca.com/platform/assessing";
var language = "zh-TW";
var parentID = "http://visca.com/assessment/id/final-exam";
var pName = visca.setName("zh-TW","期末考");
var pType = "http://adlnet.gov/expapi/activities/assessment";
var parentDef = visca.setDefinition(pName,null,pType,null,null,null,null);
var parent = visca.setParent(parentID,parentDef);
var category = visca.setCategory("https://w3id.org/xapi/acrossx/profile/assessment");
var contextActivities = visca.setContextActivities(parent,null,category);
var contextExtensions = visca.setExtension("browser-info");
var context = visca.setContext(instructor,language,contextActivities,platform,contextExtensions);
var authority = visca.setAuthorityByMbox("Crystal","mailto:crystal@visca.com");
var timestamp = visca.setTimestamp();

visca.customizedAnsweredQuizQuestions(actor,verb,object,result,context,authority,timestamp);

customizedAttemptedQuiz()

  • 作用:學生開始一個測驗
  • 參數:表A
Example
var actor = visca.setActorByMbox("Crystal","mailto:crystal@visca.com");
var verbDisplay = visca.setDisplay("zh-TW","開始嘗試");
var verb = visca.setVerb("http://adlnet.gov/expapi/verbs/attempted",verbDisplay);
var objectID = "http://visca.com/assessment/id/final-exam";
var defName = visca.setName("zh-TW","期末考");
var defDescription = visca.setDescription("zh-TW","期末考的描述");
var defType = "http://adlnet.gov/expapi/activities/assessment";
var alignment = visca.setExtension("alignment",["社4-4-2-4","語1-1-1-2"]);
var timeLimit = visca.setExtension("time-limit","PT2H30M");
var totalItems = visca.setExtension("total-items",10);
var totalScore = visca.setExtension("total-score",100);
var passScore = visca.setExtension("pass-score",60);
var defExtensions = visca.setExtensions(alignment,timeLimit,totalItems,totalScore,passScore);
var objectDef = visca.setDefinition(defName,defDescription,defType,defExtensions,null,null,null);
var object = visca.setObject(objectID,objectDef);
var reExtensions = visca.setExtension("starting-point", "2015-09-21T05:45:30Z");
var result = visca.setResult(null,reExtensions,null,null,null);
var instructor = visca.setInstructorByMbox("Teacher","mailto:teacher@visca.com");
var platform = "http://visca.com/platform/assessing";
var language = "zh-TW";
var category = visca.setCategory("https://w3id.org/xapi/acrossx/profile/assessment");
var contextActivities = visca.setContextActivities(null,null,category);
var contextExtensions = visca.setExtension("browser-info");
var context = visca.setContext(instructor,language,contextActivities,platform,contextExtensions);
var authority = visca.setAuthorityByMbox("Crystal","mailto:crystal@visca.com");
var timestamp = visca.setTimestamp();

visca.customizedAttemptedQuiz(actor,verb,object,result,context,authority,timestamp);

customizedCompletedQuiz()

  • 作用:學生完成一個測驗
  • 參數:表A
Example
var actor = visca.setActorByMbox("Crystal","mailto:crystal@visca.com");
var verbDisplay = visca.setDisplay("zh-TW","完成");
var verb = visca.setVerb("http://adlnet.gov/expapi/verbs/completed",verbDisplay);
var objectID = "http://visca.com/assessment/id/final-exam";
var defName = visca.setName("zh-TW","期末考");
var defDescription = visca.setDescription("zh-TW","期末考的描述");
var defType = "http://adlnet.gov/expapi/activities/assessment";
var alignment = visca.setExtension("alignment",["社4-4-2-4","語1-1-1-2"]);
var timeLimit = visca.setExtension("time-limit","PT2H30M");
var totalItems = visca.setExtension("total-items",10);
var totalScore = visca.setExtension("total-score",100);
var passScore = visca.setExtension("pass-score",60);
var defExtensions = visca.setExtensions(alignment,timeLimit,totalItems,totalScore,passScore);
var objectDef = visca.setDefinition(defName,defDescription,defType,defExtensions,null,null,null);
var object = visca.setObject(objectID,objectDef);
var reDuration = "PT1H";
var reScore = visca.setScore(20,90,90);
var reSuccess = true;
var reExtensions = visca.setExtension("ending-point","2015-09-21T06:45:30Z");
var result = visca.setResult(reDuration,reExtensions,null,reScore,reSuccess);
var instructor = visca.setInstructorByMbox("Teacher","mailto:teacher@visca.com");
var platform = "http://visca.com/platform/assessing";
var language = "zh-TW";
var category = visca.setCategory("https://w3id.org/xapi/acrossx/profile/assessment");
var contextActivities = visca.setContextActivities(null,null,category);
var contextExtensions = visca.setExtension("browser-info");
var context = visca.setContext(instructor,language,contextActivities,platform,contextExtensions);
var authority = visca.setAuthorityByMbox("Crystal","mailto:crystal@visca.com");
var timestamp = visca.setTimestamp();

visca.customizedCompletedQuiz(actor,verb,object,result,context,authority,timestamp);

customizedChoseCorrectOption()

  • 作用:學生選了答案的選項
  • 參數:表A
Example
var actor = visca.setActorByMbox("Crystal","mailto:crystal@visca.com");
var verbDisplay = visca.setDisplay("zh-TW","互動");
var verb = visca.setVerb("http://adlnet.gov/expapi/verbs/interacted",verbDisplay);
var objectID = "http://visca.com/question/id/3";
var defName = visca.setName("zh-TW","3");
var defDescription = visca.setDescription("zh-TW","哪一個人最帥?");
var defType = "http://adlnet.gov/expapi/activities/cmi.interaction";
var alignment = visca.setExtension("alignment",["社4-4-2-4","語1-1-1-2"]);
var bloomsLevel = visca.setExtension("blooms-level","Applying");
var defExtensions = visca.setExtensions(alignment,bloomsLevel);
var defInteractionType = "choice";
var defCorrectResponsesPattern = visca.setCorrectResponsesPattern("king");
var choiceKing = visca.setDescription("zh-TW","金城武");
var choiceMing = visca.setDescription("zh-TW","明金城");
var defChoices = visca.setChoices("king",choiceKing,"ming",choiceMing);
var objectDef = visca.setDefinition(defName,defDescription,defType,defExtensions,defInteractionType,defCorrectResponsesPattern,defChoices);
var object = visca.setObject(objectID,objectDef);
var reResponse = "king";
var result = visca.setResult(null,null,reResponse,null,null);
var instructor = visca.setInstructorByMbox("Teacher","mailto:teacher@visca.com");
var platform = "http://visca.com/platform/assessing";
var language = "zh-TW";
var parentID = "http://visca.com/assessment/id/final-exam";
var pName = visca.setName("zh-TW","期末考");
var pType = "http://adlnet.gov/expapi/activities/assessment";
var parentDef = visca.setDefinition(pName,null,pType,null,null,null,null);
var parent = visca.setParent(parentID,parentDef);
var category = visca.setCategory("https://w3id.org/xapi/acrossx/profile/assessment");
var contextActivities = visca.setContextActivities(parent,null,category);
var contextExtensions = visca.setExtension("browser-info");
var context = visca.setContext(instructor,language,contextActivities,platform,contextExtensions);
var authority = visca.setAuthorityByMbox("Crystal","mailto:crystal@visca.com");
var timestamp = visca.setTimestamp();

visca.customizedChoseCorrectOption(actor,verb,object,result,context,authority,timestamp);

customizedReadQuizHints()

  • 作用:學生閱讀答題後的補充資訊或提示
  • 參數:表A
Example
var actor = visca.setActorByMbox("Crystal","mailto:crystal@visca.com");
var verbDisplay = visca.setDisplay("zh-TW","閱讀");
var verb = visca.setVerb("https://w3id.org/xapi/adb/verbs/read",verbDisplay);
var objectID = "http://visca.com/question/id/3";
var defName = visca.setName("zh-TW","3");
var defDescription = visca.setDescription("zh-TW","哪一個人最帥?");
var defType = "http://adlnet.gov/expapi/activities/cmi.interaction";
var alignment = visca.setExtension("alignment",["社4-4-2-4","語1-1-1-2"]);
var bloomsLevel = visca.setExtension("blooms-level","Applying");
var supplementalInfo = visca.setExtension("supplemental-info","your hint!");
var defExtensions = visca.setExtensions(alignment,bloomsLevel,supplementalInfo);
var defInteractionType = "choice";
var defCorrectResponsesPattern = visca.setCorrectResponsesPattern("king");
var choiceKing = visca.setDescription("zh-TW","金城武");
var choiceMing = visca.setDescription("zh-TW","明金城");
var defChoices = visca.setChoices("king",choiceKing,"ming",choiceMing);
var objectDef = visca.setDefinition(defName,defDescription,defType,defExtensions,defInteractionType,defCorrectResponsesPattern,defChoices);
var object = visca.setObject(objectID,objectDef);
var reDuration = "PT1M10S";
var result = visca.setResult(reDuration,null,null,null,null);
var instructor = visca.setInstructorByMbox("Teacher","mailto:teacher@visca.com");
var platform = "http://visca.com/platform/assessing";
var language = "zh-TW";
var parentID = "http://visca.com/assessment/id/final-exam";
var pName = visca.setName("zh-TW","期末考");
var pType = "http://adlnet.gov/expapi/activities/assessment";
var parentDef = visca.setDefinition(pName,null,pType,null,null,null,null);
var parent = visca.setParent(parentID,parentDef);
var category = visca.setCategory("https://w3id.org/xapi/acrossx/profile/assessment");
var contextActivities = visca.setContextActivities(parent,null,category);
var contextExtensions = visca.setExtension("browser-info");
var context = visca.setContext(instructor,language,contextActivities,platform,contextExtensions);
var authority = visca.setAuthorityByMbox("Crystal","mailto:crystal@visca.com");
var timestamp = visca.setTimestamp();

visca.customizedReadQuizHints(actor,verb,object,result,context,authority,timestamp);

表1

  • 物件名稱:actor
  • 組成元素:
名稱 屬性 說明 必要性 objectType String "Agent" 必要 name String 腳色之全名 必要 mbox mailto IRI 腳色的電子郵件,格式為 "mailto: 電子郵件" 必要

表2

  • 物件名稱:verb
  • 組成元素:
名稱 屬性 說明 必要性
id URL 使用的動作 必要
display Object 使用動作的多語言之表示,物件格式請參考表2-1 建議

表2-1

  • 物件名稱:display
  • 組成元素:
名稱 屬性 說明 必要性
zh-TW String 繁體中文的動作名稱 建議

表3

  • 物件名稱:object
  • 組成元素:
名稱 屬性 說明 必要性
objectType String "Activity" 必要
id URL 影片的連結 必要
definition Object 元數據 (Metadata),物件格式請參考表3-1 必要

表3-1

  • 物件名稱:definition
  • 組成元素:
名稱 屬性 說明 必要性
name Object 該活動之名稱,物件格式請參考表3-1-1 建議
description Object 此活動之描述,物件格式請參考表3-1-2 除了開始測驗是選填外,其他皆建議
type URL 活動類型 必要
extensions Object 根據需要使用其他屬物件,物件格式請參考表3-1-3 必要:完成測驗、閱讀提示
建議:回答測驗問題、開始測驗、選了答案的選項

表3-1-1

  • 物件名稱:name
  • 組成元素:
名稱 屬性 說明 必要性
zh-TW String 該活動之繁體中文名稱 建議

表3-1-2

  • 物件名稱:description
  • 組成元素:
名稱 屬性 說明 必要性
zh-TW String 此活動之繁體中文描述 除了開始測驗是選填外,其他皆建議

表3-1-3

  • 物件名稱:extensions
  • 組成元素:

(object.definition.extensions)

名稱 屬性 說明 必要性
https://w3id.org/xapi/acrossx/extensions/alignment Array of String 對齊的課綱、能力、知識節點或其他指標 建議
https://w3id.org/xapi/acrossx/extensions/blooms-level String Blooms Level:
  • Remembering
  • Understanding
  • Applying
  • Analyzing
  • Evaluating
  • Creating
建議:回答測驗問題、選了答案的選項、閱讀提示
http://w3id.org/xapi/acrossX/extensions/supplemental-info String/Activity Object/URL Hint or feedback revealed 必要:閱讀提示
https://w3id.org/xapi/acrossx/extensions/time-limit ISO 8601 String 測驗的時間限制 選填:開始測驗、結束測驗
https://w3id.org/xapi/acrossx/extensions/total-items Integer 題目數量 建議:開始測驗
必要:完成測驗
https://w3id.org/xapi/acrossx/extensions/total-score Integer 測驗總分 |建議:開始測驗、完成測驗
https://w3id.org/xapi/acrossx/extensions/pass-score Integer 通過分數 建議:開始測驗、完成測驗

(result.extensions)

名稱 屬性 說明 必要性
http://id.tincanapi.com/extension/starting-point ISO 8601 String 測驗開始時間 必要:開始測驗
http://id.tincanapi.com/extension/ending-point ISO 8601 String 測驗結束時間 必要:完成測驗

(context.extensions)

名稱 屬性 說明 必要性
http://id.tincanapi.com/extension/browser-info Navigator Object 使用的瀏覽器資訊 建議

表4

  • 物件名稱:context
  • 組成元素:
名稱 屬性 說明 必要性
instructor Object 如果教學者不是動作者時,請填寫教學者,物件格式請參考表4-1 除了選了答案的選項是選填外,其他皆必要
language String 此情境中使用之語言 選填
contextActivities Object 學習活動情境之各類型資訊。有效的類型:parent、grouping、category、other,物件格式請參考表4-2 必要
platform String 此筆活動紀錄之使用平台 建議
extensions Object 其他的特殊情境元素,物件格式請參考表3-1-3 建議

表4-1

  • 物件名稱:instructor
  • 組成元素:
名稱 屬性 說明 必要性
objectType String "Agent" 除了選了答案的選項是選填外,其他皆必要
name String 腳色之全名 除了選了答案的選項是選填外,其他皆必要
mbox mailto IRI 腳色的電子郵件,格式為 "mailto: 電子郵件" 除了選了答案的選項是選填外,其他皆必要

表4-2

  • 物件名稱:contextActivities
  • 組成元素:
名稱 屬性 說明 必要性
parent[0] Activity Object 題目所屬的測驗母活動,物件格式請參考表4-2-1 必要:回答測驗問題、選了答案的選項、閱讀提示
category[0 Activity Object 測驗的 Profile Activity,物件格式請參考表4-2-2 必要

表4-2-1

  • 物件名稱:parent[0]
  • 組成元素:
名稱 屬性 說明 必要性
objectType String "Activity" 必要:回答測驗問題、選了答案的選項、閱讀提示
id URL 一個唯一的 Activity ID 必要:回答測驗問題、選了答案的選項、閱讀提示
definition Object 元數據,物件格式請參考表3-1(只有name,type必要) 必要:回答測驗問題、選了答案的選項、閱讀提示

表4-2-2

  • 物件名稱:category[0]
  • 組成元素:
名稱 屬性 說明 必要性
objectType String "Activity" 必要
id URL 一個唯一的 Activity ID 必要

表5

  • 物件名稱:authority
  • 組成元素:
名稱 屬性 說明 必要性
objectType String "Agent" 選填
name String 語句擁有者之全名 選填
mbox mailto IRI 語句擁有者的電子郵件,格式為 "mailto: 電子郵件" 選填

表6

  • 物件名稱:result
  • 組成元素:
名稱 屬性 說明 必要性
duration ISO 8601 String 表示此活動之持續時間 必要:完成測驗、閱讀提示
建議:回答測驗問題
extensions Object 對應其他欲表達之元素,物件格式請參考表3-1-3 必要:開始測驗、完成測驗
response String 回答內容 必要:回答測驗問題、選了答案的選項
score Object 分數,物件格式請參考表6-1 必要:完成測驗
建議:回答測驗問題
success Boolean 答對(通過)與否 必要:回答測驗問題
建議:完成測驗

表6-1

  • 物件名稱:score
  • 組成元素:
名稱 屬性 說明 必要性
min Decimal number less than max 最低分 建議
raw Decimal number between min and max 得分 建議
max Decimal number greater than min 最高分 建議

results matching ""

    No results matching ""