Podcast
Questions and Answers
Which of the following is the correct JSON format?
Which of the following is the correct JSON format?
- {'question': 'What is the capital of France?', 'options': {'a': 'London', 'b': 'Paris', 'c': 'Berlin', 'd': 'Madrid'}, 'answer': 'b', 'info': 'Paris is the correct answer'} (correct)
- {'query': 'What is the largest planet in the solar system?', 'choices': {'a': 'Mars', 'b': 'Jupiter', 'c': 'Earth', 'd': 'Venus'}, 'correct': 'b', 'extra': 'Jupiter is the largest planet'}
- {'prompt': 'How many sides does a triangle have?', 'choices': {'a': '4', 'b': '3', 'c': '5', 'd': '6'}, 'correct_choice': 'b', 'additional_info': 'A triangle has 3 sides'}
- {'Q': 'What is the capital of Japan?', 'options': {'a': 'Beijing', 'b': 'Tokyo', 'c': 'Seoul', 'd': 'Bangkok'}, 'ans': 'b', 'note': 'Tokyo is the capital of Japan'}
What is the maximum level of nesting allowed in JSON?
What is the maximum level of nesting allowed in JSON?
- 100
- Unlimited
- 5 (correct)
- 10
Which of the following is a valid key data type in JSON?
Which of the following is a valid key data type in JSON?
- Symbol
- Undefined
- Function
- String (correct)