Skip to content

Json format for MCQ Questions with Json Markdown

Muhammad Tariq edited this page Apr 13, 2021 · 15 revisions

Add questions of a paper

[
  {
    "subject": "Mathematics",
    "system": "IGCSE",
    "board": "Edexcel",
    "series": "2",
    "paper": "Foundation",
    "year": "2015",
    "month": "May",
    "is_theory": false
  },
  {
    "questions": "first question",
    "marks": "3",
    "options": [
      {
        "option": "1",
        "correct": false
      },
      {
        "option": "2",
        "correct": false
      },
      {
        "option": "3",
        "correct": true
      },
      {
        "option": "4",
        "correct": false
      }
    ],
    "topics": [
      {
        "topic": "first topic"
      },
      {
        "topic": "second topic"
      }
    ]
  },
  {
    "questions": "second Question",
    "marks": "4",
    "options": [
      {
        "option": "5",
        "correct": false
      },
      {
        "option": "6",
        "correct": false
      },
      {
        "option": "7",
        "correct": false
      },
      {
        "option": "8",
        "correct": false
      }
    ],
    "topics": [
      {
        "topic": "third topic"
      },
      {
        "topic": "fourth topic"
      }
    ]
  }
]

Add Theory Question

[
  {
    "subject": "Mathematics",
    "system": "IGCSE",
    "board": "Edexcel",
    "series": "2",
    "paper": "Foundation",
    "year": "2015",
    "month": "May",
    "is_theory": true
  },
  {
    "questions": "1. Theory question",
    "marks": "3",
    "answer": "| Python Operator | Description  | \n | :---: | :---: | \n | `+` | addition | \n | `-` | subtraction | \n | `*` | multiplication | \n | `/` | division | \n | `**` | power |",
    "topics": [
      {
        "topic": "first topic"
      },
      {
        "topic": "second topic"
      }
    ]
  },
  {
    "questions": "2. Theory question",
    "marks": "4",
    "answer": "| Python Operator | Description  | \n | :---: | :---: | \n | `+` | addition | \n | `-` | subtraction | \n | `*` | multiplication | \n | `/` | division | \n | `**` | power |",
    "topics": [
      {
        "topic": "third topic"
      },
      {
        "topic": "fourth topic"
      }
    ]
  }
]  

Sample Markdown Json ( This is Add all paper question with images )

[
  {
    "subject": "Math",
    "system": "GCSE",
    "board": "Edexcel",
    "series": "2",
    "paper": "Intermediate",
    "year": "2010",
    "month": "June",
  },
  {
    "questions": "| First Header  | Second Header |   \n| ------------- | -------------:|  \n| Content Cell  | Content Cell  |   \n| Content Cell  | Content Cell  |   \nInline $$E=mc^2$$ Inline,Inline $$E=mc^2$$ Inline \n> Blockquotes can also be nested...   \n>> ...by using additional greater-than signs right next to each other...   \n> > > ...or with spaces between arrows.   \n::: warning   \n*here be dragons*    \n:::\t    \n+ Create a list by starting a line with `+`, `-`, or `*`   \n+ Sub-lists are made by indenting 2 spaces: \n- Marker character change forces new list start: \n * Ac tristique libero volutpat at \n + Facilisis in pretium nisl aliquet \n - Nulla volutpat aliquam velit \n+ Very easy! \nThe *Gamma function* satisfying $\\Gamma(n) = (n-1)!\\quad\\forall n\\in\\mathbb N$ is via the Euler integral\n$$\n\\Gamma(z) = \\int_0^\\infty t^{z-1}e^{-t}dt\\,.\n$$\n``` js\nvar foo = function (\"bar\") {\nreturn bar++;\n};\n\nconsole.log(foo(5));\n```\t\n\n",
    "marks": "3",
    "options": [
      {
        "option": "Economics option 1 for student",
        "correct": false
      },
      {
        "option": "Economics option 2 for student",
        "correct": false
      },
      {
        "option": "Economics option 3 for student",
        "correct": true
      },
      {
        "option": "Economics option 4 for student",
        "correct": false
      }
    ],
    "topics": [
      {
        "topic": "Economics first topic"
      },
      {
        "topic": "Economics second topic"
      }
    ],
    "images": [
      {
        "imageurl": "https://exam105.s3-ap-southeast-1.amazonaws.com/2pG2jTSQCmnCwMNxmTXuHS.jpeg"
      },
      {
        "imageurl": "https://exam105.s3-ap-southeast-1.amazonaws.com/2pG2jTSQCmnCwMNxmTXuHS.jpeg"
      },
      {
        "imageurl": "https://exam105.s3-ap-southeast-1.amazonaws.com/2pG2jTSQCmnCwMNxmTXuHS.jpeg"
      }      
    ]
  }
]

Sample Select Json

[
    {
    "subject": "Mathematics",
    "system": "IGCSE",
    "board": "Edexcel",
    "series": "2",
    "paper": "Foundation",
    "year": "2015",
    "month": "May"
    },
   {
     "subject": "English",
     "system": "IGCSE",
     "board": "Edexcel",
     "series": "1",
     "paper": "Foundation",
     "year": "2013",
     "month": "June"
   },
   {
     "subject": "Urdu",
     "system": "IGCSE",
     "board": "Edexcel",
     "series": "5",
     "paper": "Foundation",
     "year": "2018",
     "month": "february"
   },
]

Single Question Json (To Update any question in existing paper )

  {
    "id": "60281e03e9f925702cb8e90c",
    "questions": "first question",
    "marks": "3",
    "options": [
      {
        "option": "1",
        "correct": false
      },
      {
        "option": "2",
        "correct": false
      },
      {
        "option": "3",
        "correct": true
      },
      {
        "option": "4",
        "correct": false
      }
    ],
    "topics": [
      {
        "topic": "first topic"
      },
      {
        "topic": "second topic"
      }
    ],
    "images": [
      {
        "imageurl": "https://exam105.s3-ap-southeast-1.amazonaws.com/2pG2jTSQCmnCwMNxmTXuHS.jpeg"
      },
      {
        "imageurl": "https://exam105.s3-ap-southeast-1.amazonaws.com/2pG2jTSQCmnCwMNxmTXuHS.jpeg"
      },
      {
        "imageurl": "https://exam105.s3-ap-southeast-1.amazonaws.com/2pG2jTSQCmnCwMNxmTXuHS.jpeg"
      }      
    ]
  }

Single Question JSON (To Add question to existing paper)

{
    "questions": "This is 3rdupdated question to an existing paper",
    "marks": "3",
    "options": [
        {
            "option": "1111",
            "correct": false
        },
        {
            "option": "2222",
            "correct": false
        },
        {
            "option": "3333",
            "correct": true
        },
        {
            "option": "4444",
            "correct": false
        }
    ],
    "topics": [
        {
            "topic": "1. Tomorrow you will have to perform medical test"
        },
        {
            "topic": "2. Get your test done from a reputable laboratory."
        }
    ],
    "images": [
      {
        "imageurl": "https://exam105.s3-ap-southeast-1.amazonaws.com/2pG2jTSQCmnCwMNxmTXuHS.jpeg"
      },
      {
        "imageurl": "https://exam105.s3-ap-southeast-1.amazonaws.com/2pG2jTSQCmnCwMNxmTXuHS.jpeg"
      },
      {
        "imageurl": "https://exam105.s3-ap-southeast-1.amazonaws.com/2pG2jTSQCmnCwMNxmTXuHS.jpeg"
      }      
    ]
}

Clone this wiki locally