🎧 New: AI-Generated Podcasts Turn your study notes into engaging audio conversations. Learn more

JSON Formats and Key Values Quiz
3 Questions
2 Views

JSON Formats and Key Values Quiz

Created by
@PerfectLife

Podcast Beta

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 Quizzes Like This

    Use Quizgecko on...
    Browser
    Browser