Json format for MCQ Questions with Json Markdown - exam105/backend GitHub Wiki

Add MCQs questions of a paper

[
  {
    "subject": "Mathematics",
    "system": "IGCSE",
    "board": "Edexcel",
    "series": "2",
    "paper": "Foundation",
    "date" : "2018-09-22T12:42:31Z",
    "is_theory": false,
    "reference": "4MA0/4H KMA0/4H",
    "notes": "Core"
  },
  {
    "question": "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"
      }
    ]
  },
  {
    "question": "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 Paper

[
  {
    "subject": "Mathematics",
    "system": "IGCSE",
    "board": "Edexcel",
    "series": "2",
    "paper": "Foundation",
    "date" : "2018-09-22T12:42:31Z",
    "is_theory": true
  },
  {
    "question": "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"
      }
    ]
  },
  {
    "question": "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",
    "date" : "2019-02-22T12:42:31Z"
  },
  {
    "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 Metadata Json - Update

{
    "subject": "Mathematics",
    "system": "IGCSE",
    "board": "Edexcel",
    "series": "2",
    "paper": "Foundation",
    "date" : "2018-09-22T12:42:31Z"
}

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"
      }      
    ]
}

Search By date

{
    "subject": "Urdu",
    "system" : "IGCSE",
    "board" : "Edexcel",
    "date" : "2015-09-22T00:00:00.0Z"
}