試験を作成します

試験を作成するには、試験の詳細を記載した投稿リクエストを送信する必要があります。 以下は例です:
{
  "name": "Introduction to Data Science DSC101",
  "platform": [
    "android",
    "ios",
    "web"
  ],
  "enforceDesktop": false,
  "analytics": {
    "device": true,
    "ip": true,
    "focusing": true
  },
  "openOn": 1719046628502,
  "closeOn": 1719064544928,
  "duration": 1200,
  "restricted_commands": [
    "copy",
    "cut",
    "paste",
    "right_mouse",
    "...more"
  ],
  "logo": "data:base64,WHV4MnJsN2oyZUdmb...",
  "translation": {
    "enableSelection": true,
    "entire": false,
    "langs": [
      "en",
      "zh",
      "ru",
      "de",
      "vi",
      "...more"
    ]
  },
  "redirectionLink": "https://exam.feedback.stanford.com/respondent",
  "monitoring": {
    "cam": true,
    "screen": true
  },
  "result": {
    "availability": "instant",
    "public": false,
    "viewableAns": true
  },
  "respondant": {
    "enforceUser": false,
    "multipleUserAttempts": false,
    "privateExam": false,
    "multipleInvitationAttempts": false,
    "multipleDeviceAttempt": false,
    "resumable": true,
    "charge": false
  },
  "welcomePage": {
    "content": [
      {
        "type": "text",
        "value": "Your custom html text goes here.."
      },
      {
        "type": "about",
        "value": "Enter Matric No."
      },
      {
        "type": "input",
        "value": "Enter Password"
      }
    ],
    "validate": false,
    "multipleAttempts": false
  },
  "thankYouPage": "<div>Thank you for your participation</div>",
  "courses": [
    {
      "title": "Data Wrangling and Cleaning",
      "shuffleQ": true,
      "shuffleOption": false,
      "limit": 1,
      "questions": [
        {
          "q": "Which of the following methods is used to handle missing values in a dataset?",
          "opt": [
            "Normalization",
            "One-Hot Encoding",
            "Imputation",
            "PCA (Principal Component Analysis)"
          ],
          "ans": [
            2
          ],
          "type": "radio",
          "points": 1
        },
        {
          "q": "Explain the process of data cleaning and why it is important in data science. Include examples of common issues found in raw data and how they can be addressed.",
          "type": "free",
          "points": 3
        }
      ]
    },
    {
      "title": "Statistical Analysis and Visualization",
      "shuffleQ": true,
      "shuffleOption": false,
      "questions": [
        {
          "q": "Which of the following are common types of data visualizations used in exploratory data analysis (EDA)? (Select all that apply)",
          "opt": [
            "Bar Chart",
            "Histogram",
            "Scatter Plot",
            "Decision Tree"
          ],
          "ans": [
            0,
            1,
            2
          ],
          "type": "checkbox"
        },
        {
          "q": "Which statistical measure is used to describe the spread or dispersion of a set of data points?",
          "ans": [
            "Standard Deviation",
            "S.D",
            "SD"
          ],
          "type": "exact_or"
        },
        {
          "q": "List 3 methods for measures of central tendency?",
          "ans": [
            "Mean",
            "Median",
            "Mode"
          ],
          "type": "exact_and"
        }
      ]
    }
  ]
}

説明

個々のフィールドと値は次のように説明されています。
フィールドタイプ必須説明
nameStringこれはあなたの試験に与えられた名前になります。
それ以上であってはなりません 200 文字
platformArrayこの配列には、この試験にサポートするプラットフォームが含まれている必要があります。
有効な値はです android, ios そして web
enforceDesktopBooleanこの試験は、999ピクセルを超える画面解像度の幅があるデバイスでのみ撮影できる場合はTRUEです。 デフォルトはfalseになります
openOnNumberこれは、試験が利用可能な時期です。<br>1970年1月1日に真夜中(UTC)以来経過したミリ秒数であるエポックタイム形式であると予想されます。
closeOnNumberこれは、試験が利用できなくなった時期です。<br>1970年1月1日に真夜中(UTC)以来経過したミリ秒数であるエポックタイム形式であると予想されます。
durationNumberこれは、回答者が試験を完了できる最大秒です。
logoStringこれは、試験ロゴのBase64データまたは有効な画像を指すHTTPS URLのいずれかです。
monitoring.camBoolean回答者カムを記録したい場合はtrue
monitoring.screenBoolean回答者の画面を記録したい場合はtrue
analytics.deviceBoolean回答者のデバイス情報を記録する場合はtrue
analytics.ipBoolean回答者のパブリックIPアドレスを記録したい場合はtrue
analytics.focusingBoolean回答者が試験画面に焦点を当てたときにログを記録してフラグを立てたい場合は真実
restricted_commandsArrayこの配列は、回答者が試験を受けているときに制限されるコマンドを含める必要があります。


copy: これにより、試験ページでテキストのコピーに関連付けられているコマンドが無効になります (e.g CTRL+C, CMD+C).
cut: これにより、試験ページのテキストの削減に関連付けられているコマンドが無効になるはずです (e.g CTRL+X, CMD+X).
paste: これにより、試験ページでテキストの貼り付けに関連付けられているコマンドが無効になります (e.g CTRL+V, CMD+V).
right_mouse: これにより、マウスの右クリックが無効になります
print: これにより、試験ページの印刷に関連付けられているコマンドが無効になります (e.g CTRL+P, CMD+P).
fullscreen: これにより、試験ページでフルスクリーンの入力に関連付けられているコマンドが無効になります (e.g CTRL+CMD+F).
shortcut: これにより、すべてのショートカットキーが無効になるはずです(矢印、矢印、arrowleft、arrowright、n、p、1-9)
sci_cal: これにより、科学的計算機が無効になるはずです
basic_cal: これにより、基本的な計算機が無効になります
result.availabilityStringこれは次のいずれかです:

instant: 回答者の結果を即座に利用できるようにしたい場合
manual: 回答者の結果を手動でリリースしたい場合
off: あなたが私たちのプラットフォームで回答者の結果をリリースするつもりがない場合
result.publicBooleanすべての回答者にお互いのスコアを見てもらいたい場合は本当
result.viewableAnsBoolean回答者にマーキングと試みを見てもらいたい場合は本当
respondant.enforceUserBoolean回答者のユーザーサインインを強制します。
respondant.multipleUserAttemptsBoolean同じユーザーからの複数の試行を有効にします。 デフォルトはfalseになります。
注:この値は無視されます respondant.enforceUser 偽です
respondant.privateExamBoolean招待した回答者のみがこの試験を受けたい場合は真です。
respondant.multipleInvitationAttemptsBoolean同じ招待状リンクから複数の試行を有効にします。 デフォルトはfalseになります
注:この値は無視されます respondant.privateExam 偽です
respondant.multipleDeviceAttemptBoolean同じブラウザまたはデバイスから複数の試行を有効にします。 デフォルトはfalseになります
respondant.resumableBoolean回答者がページをリロードするときに試験を再開できます。 デフォルトはfalseになります
respondant.chargeBoolean回答者は、この試験を受けるために必要なトークンを請求します。 デフォルトはfalseになります
respondant.limitNumerこれは、この試験を試みることができる最大の回答者を表す正の整数でなければなりません
redirectionLinkStringこれを提供すると、テストが完了したときに指定されたリンクにユーザーをリダイレクトし、 respondent_id=unique_id.

たとえば、提供された場合 https://exam.feedback.stanford.com/respondent リダイレクトリンクとして、回答者はリダイレクトされます https://exam.feedback.stanford.com/respondent?respondent_id=unique_id. どこ unique_id 回答者のIDになります。
translation.enableSelectionBoolean言語の選択を有効にするか、デフォルトのシステム言語を使用する場合はtrue
translation.entireBoolean質問やオプションを含む試験テキスト全体を翻訳したい場合はTRUE
translation.langsArrayこの配列には、 ISO 639-1 language codes 試験翻訳を利用できるようにしたい。

サポート言語
  • English (en)
  • French (fr)
  • Chinese (zh)
  • German (de)
  • Swahili (sw)
  • Spanish (es)
  • Russian (ru)
  • Portuguese (pt)
  • Hindi (hi)
  • Arabic (ar)
  • Bengali (bn)
  • Japanese (ja)
  • Korean (ko)
  • Italian (it)
  • Turkish (tr)
  • Vietnamese (vi)
  • Dutch (nl)
  • Thai (th)
  • Indonesian (id)
  • Polish (pl)
  • Malay (ms)
  • Filipino (tl)
  • Swedish (sv)
  • Greek (el)
  • Czech (cs)
  • Romanian (ro)
  • Hungarian (hu)
  • Ukrainian (uk)
  • Hebrew (he)
  • Farsi (fa)
  • Danish (da)
  • Norwegian (no)
  • Finnish (fi)
  • Bulgarian (bg)
  • Albanian (sq)
  • Latvian (lv)
  • Mongolian (mn)
  • Slovak (sk)
  • Catalan (ca)
  • Georgian (ka)
  • Lithuanian (lt)
  • Serbian (sr)
welcomePage.validateBooleanのフィールド値を検証したい場合はtrue welcomePage.content WebHook URLを介して. デフォルトはfalseになります.
welcomePage.multipleAttemptsBoolean同じフィールド値の複数の試行を許可したい場合はtrue。 デフォルトでfalseになります。
welcomePage.content.typeString試験の上部にコンテンツをレンダリングするウェルカムページ
値は次のいずれかです:

text: テキストまたはHTMLコンテンツをレンダリングします.
input: 対応する入力フィールドをレンダリングします welcomePage.content.value 入力フィールドのプレースホルダーとして使用されます。
thankYouPageString回答者が試験を完了または提出した後に回答者に表示されるテキストまたはHTMLコンテンツ。
courses.titleStringコースのタイトル
courses.shuffleQBooleanこのセクションの質問をシャッフルするのに忠実です
courses.shuffleOptionBoolean質問のオプションをシャッフルするのに忠実です radio or checkbox
courses.limitInteger回答者がこのコースで試みることができる質問の最大数を制限する積極的な整数全体の値全体
courses.questions.qStringテキストまたはHTMLフォームの個々の質問。
courses.questions.optArray質問のオプション。 文字列の配列である必要があり、最大26項目をサポートできます.
これは、場合にのみ提供する必要があります courses.questions.type どちらかです "radio" または "checkbox".
courses.questions.ansArray質問への答え.もし courses.questions.type どちらかです "radio" または "checkbox", これは、正しいオプションの位置として整数の配列である必要があります.elseの場合 courses.questions.type どちらかです "exact" または "exact_and", 次に、文字列の配列である必要があります.
courses.questions.typeString値は次のいずれかです:

radio: 質問に単一の答えがあるオプションがある場合に適しています.
checkbox: 質問に複数の答えがあるオプションがある場合に適しています.
exact: ビットワイズを使用して正解を使用して回答者の試みに対して確認するか.
exact_and: ビットワイズを使用して正解を使用して回答者の試みに対して確認し、.
free: 質問への回答は、エッセイや説明などの無料のテキストです。 このような質問は私たちのAIエンジンによってマークされることに注意してください.
courses.questions.pointsNumberこの質問に割り当てるポイントの数。 デフォルトは1です
courses.questions.expString質問に対する正解の説明。

試験の編集

既存の試験を編集するとき、あなたは monitoring, result そして respondant 分野. ただし、回答者フィールドの制限を次のように更新できます respondant.limit.
オブジェクトまたは配列を含むフィールドを値として更新するとき、マージ操作は実行されません。 代わりに、そのようなフィールドの値全体が新しいフィールドに置き換えられます。
削除したい場合は、フィールドをnullに設定できます


既存の試験を編集するには、Exam_IDと一緒にPUTリクエストを送信する必要があります。
{
  "platform": [
    "web"
  ],
  "openOn": null,
  "restricted_commands": [
    "copy",
    "cut",
    "paste"
  ],
  "translation": {
    "enableSelection": true,
    "entire": true,
    "langs": [
      "en",
      "zh",
      "ru"
    ]
  },
  "questions": [
    {
      "title": "Data Wrangling and Cleaning",
      "shuffleQ": true,
      "shuffleOption": false,
      "limit": 1,
      "questions": [
        {
          "q": "Which of the following methods is used to handle missing values in a dataset?",
          "opt": [
            "Normalization",
            "One-Hot Encoding",
            "Imputation",
            "PCA (Principal Component Analysis)"
          ],
          "ans": [
            2
          ],
          "type": "radio",
          "points": 1
        },
        {
          "q": "Explain the process of data cleaning and why it is important in data science. Include examples of common issues found in raw data and how they can be addressed.",
          "type": "free",
          "points": 3
        }
      ]
    },
    {
      "title": "Statistical Analysis and Visualization",
      "shuffleQ": true,
      "shuffleOption": false,
      "questions": [
        {
          "q": "Which of the following is a Python library used for data visualization?",
          "opt": [
            "NumPy",
            "Pandas",
            "Matplotlib",
            "Scikit-learn"
          ],
          "ans": [
            2
          ],
          "type": "radio"
        },
        {
          "q": "Discuss the importance of exploratory data analysis (EDA) in data science and describe how visualization tools can be used to perform EDA.",
          "type": "free",
          "points": 2
        }
      ]
    }
  ]
}

試験を削除します

試験を削除するには、Exam_IDとともに削除リクエストを送信する必要があります。
試験を削除すると、すべてのメディアデータ、質問、回答者データを含む、そのような試験に関連するすべてのデータが削除されます
{
  "x-client-id": "xxx-xxx-xxx",
  "x-client-secret": "xxxxxxx",
  "content-type": "application/json"
}

フィードバックコメント (0)