Skip to content

Import format

Emil Johnsen edited this page Apr 7, 2024 · 1 revision

Format for Importing Questions to a Quiz

This is the format for your .txt file when importing questions to a quiz:

template.txt

  • Question Title: The title for your question
  • Max Points: The amount of points that will be given for the question
  • Image URL: The image URL for your question. You can exclude this if you don't have your image stored anywhere and add the image later.
  • Question Type: Here you can choose between either a true or false or a multiple-choice question.
    • Answer: When you choose the question type "true or false," you must specify whether the answer to the question is true or false.
    • Alternatives: If you choose a multiple-choice question, you must include the alternatives for your question.
      • Alternative: Here you specify the alternatives. You can have 4 alternatives at most. You specify the correct alternatives by adding (correct) after the alternatives.

If you can't access the file, you can see an example import file below:

Question title: Which country has won the most Olympic gold medals in the history of the Summer Olympics?

Max points: 3

Image url: https://quiz-project-fullstack.s3.eu-north-1.amazonaws.com/4c3bc7ed-76ab-4b45-b39e-8bbf1e055985_summer-olympics.png

Question type: multiple choice

Alternatives:

-United States (correct)

-China

-Russia

-Germany


Question title: Which country has won the most Olympic gold medals in the history of the Winter Olympics?

Max points: 3

Image url: https://quiz-project-fullstack.s3.eu-north-1.amazonaws.com/0dac5457-69b1-41e4-8d61-b721aaff8942_winder-olympics.jpeg

Question type: multiple choice

Alternatives:

-Norway (correct)

-United States

-Canada

-Russia


Question title: Did Brazil win the FIFA World Cup in 2018?

Max points: 3

Question type: true or false

Answer: false