Choice question

Schema

Examples

True or false

{
  "id": "1",
  "type": "application/x.choice+json",
  "content": "Question ?",
  "choices": [
    {
      "id": "1",
      "type": "text/plain",
      "data": "True"
    },
    {
      "id": "2",
      "type": "text/plain",
      "data": "False"
    }
  ],
  "random": false,
  "multiple": false
}

Solutions

{
  "id": "1",
  "type": "application/x.choice+json",
  "content": "Question ?",
  "choices": [
    {
      "id": "1",
      "type": "image/png",
      "url": "http://domain.com/image-1.png",
      "meta": {
        "description": "Image 1"
      }
    },
    {
      "id": "2",
      "type": "image/jpg",
      "url": "http://domain.com/image-2.jpg",
      "meta": {
        "description": "Image 2"
      }
    },
    {
      "id": "3",
      "type": "image/png",
      "url": "http://domain.com/image-3.png",
      "meta": {
        "description": "Image 3"
      }
    }
  ],
  "random": false,
  "multiple": false,
  "solutions": [
    {
      "id": "1",
      "score": 2
    },
    {
      "id": "3",
      "score": 1
    }
  ]
}

Choice feedback

{
  "id": "1",
  "type": "application/x.choice+json",
  "content": "Question ?",
  "choices": [
    {
      "id": "1",
      "type": "text/html",
      "data": "Item <em>A</em>"
    },
    {
      "id": "2",
      "type": "text/html",
      "data": "Item <em>B</em>"
    }
  ],
  "random": true,
  "multiple": false,
  "solutions": [
    {
      "id": "1",
      "score": 2,
      "feedback": "This is the correct answer because [...]"
    },
    {
      "id": "2",
      "score": 0,
      "feedback": "No, this answer is not correct because [...]"
    }
  ]
}

Extended

{
  "id": "1",
  "type": "application/x.choice+json",
  "meta": {
    "authors": [
      {
        "name": "John Doe",
        "status": "Tutor"
      }
    ],
    "license": "CC",
    "created": "2014-06-23"
  },
  "objects": [
    {
      "id": "1",
      "type": "text/html",
      "data": "<p>Lorem ipsum dolor sit amet</p>",
      "meta": {
        "title": "Lorem sample"
      }
    }
  ],
  "resources": [
    {
      "id": "2",
      "type": "application/pdf",
      "url": "http://domain.com/syllabus.txt"
    }
  ],
  "title": "Question ?",
  "content": "This is the content of my question",
  "choices": [
    {
      "id": "3",
      "type": "image/png",
      "encoding": "base64",
      "data": "f47544a4211f454e12"
    },
    {
      "id": "4",
      "type": "image/png",
      "encoding": "base64",
      "data": "944fc234fdf454a454213"
    },
    {
      "id": "5",
      "type": "image/png",
      "encoding": "base64",
      "data": "ce5423f23e51a45454962"
    }
  ],
  "random": false,
  "multiple": false,
  "hints": [
    {
      "id": "3",
      "value": "Lorem",
      "penalty": 1
    },
    {
      "id": "5",
      "value": "Ipsum",
      "penalty": 1.5
    }
  ]
}