JSON Formats and Key Values Quiz
3 Questions
2 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which one of these is the correct JSON format for a multiple choice question?

  • { 'question': 'What is the capital of France?', 'options': ['London', 'Paris', 'Berlin', 'Rome'], 'answer': 1 } (correct)
  • { 'question': 'What is the capital of France?', 'choices': ['London', 'Paris', 'Berlin', 'Rome'], 'answer': 1 }
  • { 'question': 'What is the capital of France?', 'choices': ['London', 'Paris', 'Berlin', 'Rome'], 'correct': 1 }
  • { 'question': 'What is the capital of France?', 'options': ['London', 'Paris', 'Berlin', 'Rome'], 'correct': 1 }

What should the 'answer' key value be in the JSON format for a multiple choice question?

  • The correct option itself
  • A string value indicating if the option is correct
  • A boolean value indicating if the option is correct
  • The index of the correct option (correct)

Which of the following is a valid option for the 'options' key in the JSON format for a multiple choice question?

  • {'option1': 'Option 1', 'option2': 'Option 2', 'option3': 'Option 3', 'option4': 'Option 4'}
  • ['Option 1', 'Option 2', 'Option 3', 'Option 4'] (correct)
  • {'option1': 'Option 1', 'option2': 'Option 2', 'option3': 'Option 3'}
  • ['Option 1', 'Option 2', 'Option 3']

More Like This

JSON and Multiple Choice Questions Quiz
3 questions
JSON Format and Geography Quiz
3 questions
JSON Format and Question Generation Quiz
3 questions
Use Quizgecko on...
Browser
Browser