Skip to content

Quizzl Custom Quiz Structure

Stuart edited this page Mar 3, 2018 · 5 revisions

An example set of questions used by the Quizzl.me system.

You can create it using the format below or using the generator.

About Parameters

Attribute Type Description Default (If not included)
description String A brief description about the quiz 'No description has been set for this quiz.'
timeLimit Integer The total minutes that the quiz will run for. Set to 0 for no time limit. 0
questionLimit Integer Will only display a certain number of questions from the entire question set. Set to 0 for no question limit. 0
randomise Boolean Randomise the order of the questions on each start. false
allowSkip Boolean Allow users to skip questions. false
allowBack Boolean Allow users to go back to the previous question false

Question Parameters

Questions should be stored as a standard array, containing a JSON object for each question.

Attribute Type Description
question String The question that will be displayed on the page.
answers Array of Strings All answers as they appear on the page. Must have atleast 1 answer; can have as many as required.
correct Integer The index to the correct answer from the answers array.
image String Image to display along with the current question. (Max 150px x 250px). Not required.

{  
   "about":{  
      "description":"This is an example quiz to demonstrate Quizzl.",
      "timeLimit":5,
      "questionLimit":2,
      "randomise":true,
      "allowSkip":false,
      "allowBack":false
   },
   "quiz":[  
      {  
         "question":"What is the capital of France",
         "answers":[  
            "London",
            "Paris",
            "Rome"
         ],
         "correct":1
      },
      {  
         "question":"How many continents are there in the world",
         "answers":[  
            "1",
            "4",
            "5",
            "7"
         ],
         "correct":3
      },
      {  
         "question":"How many legs does a spider typically have",
         "answers":[  
            "7",
            "8"
         ],
         "correct":1
      }
   ]
}

Clone this wiki locally