Create a flash card for json: 31 MCQs
All 31 multiple-choice questions from this kit, free and with no sign-up.
Warm-up · 23 questions
Q1. Which of the following is the correct JSON syntax for a key-value pair?
BeginnerAnswers and explanations are in the Veda app.
Q2. What data type is the JSON value `true`?
BeginnerAnswers and explanations are in the Veda app.
Q3. Which of the following is a valid JSON array?
BeginnerAnswers and explanations are in the Veda app.
Q4. What is the correct JSON representation of a number?
BeginnerAnswers and explanations are in the Veda app.
Q5. Which of the following JSON objects is syntactically correct?
BeginnerAnswers and explanations are in the Veda app.
Q6. What is the JSON value for null?
BeginnerAnswers and explanations are in the Veda app.
Q7. Which of the following is NOT a valid JSON value type?
BeginnerAnswers and explanations are in the Veda app.
Q8. How are strings enclosed in JSON?
BeginnerAnswers and explanations are in the Veda app.
Q9. What does the following JSON represent? `{"items": [1, 2, 3]}`
BeginnerAnswers and explanations are in the Veda app.
Q10. Which of the following is a valid JSON string?
BeginnerAnswers and explanations are in the Veda app.
Q11. What is the correct JSON syntax for an empty object?
BeginnerAnswers and explanations are in the Veda app.
Q12. Which of the following is a valid JSON number?
BeginnerAnswers and explanations are in the Veda app.
Q13. What is the correct JSON representation of a boolean value?
BeginnerAnswers and explanations are in the Veda app.
Q14. In JSON, keys can be unquoted if they contain only letters.
BeginnerAnswers and explanations are in the Veda app.
Q15. A JSON array can contain a mix of different data types, such as strings, numbers, and objects.
BeginnerAnswers and explanations are in the Veda app.
Q16. The JSON value `"null"` is the same as the JSON value `null`.
BeginnerAnswers and explanations are in the Veda app.
Q17. Whitespace (spaces, tabs, newlines) is allowed in JSON to improve readability.
BeginnerAnswers and explanations are in the Veda app.
Q18. A JSON object must have at least one key-value pair.
BeginnerAnswers and explanations are in the Veda app.
Q19. Which of the following is the correct JSON syntax for a key-value pair where the key is "name" and the value is "Alice"?
BeginnerAnswers and explanations are in the Veda app.
Q20. What is the correct JSON representation of an empty array?
BeginnerAnswers and explanations are in the Veda app.
Q21. Which of the following is a valid JSON object with one key-value pair?
BeginnerAnswers and explanations are in the Veda app.
Q22. What is the correct JSON syntax for a string value?
BeginnerAnswers and explanations are in the Veda app.
Q23. Which of the following JSON snippets contains a trailing comma that makes it invalid?
BeginnerAnswers and explanations are in the Veda app.
Building up · 5 questions
Q24. Consider the following JSON snippet: ```json { "flashcards": [ {"front": "What is JSON?", "back": "A data format"}, {"front": "What is a key?", "back": "A string identifier"}, ] } ``` Why is this JSON invalid?
IntermediateAnswers and explanations are in the Veda app.
Q25. Given the requirement to store a flash card with a mathematical expression as the "front" and its LaTeX representation as the "back", which of the following JSON objects correctly represents this data?
IntermediateAnswers and explanations are in the Veda app.
Q26. A developer creates a JSON structure for a set of flash cards where each card has a "tags" field that can contain multiple tags. Which of the following JSON snippets correctly represents a card with the tags "math", "physics", and "relativity"?
IntermediateAnswers and explanations are in the Veda app.
Q27. Compare the following two JSON structures for storing a flash card with nested metadata: Structure 1: ```json { "card": { "front": "Define JSON", "back": "JavaScript Object Notation", "metadata": {"difficulty": "easy", "created": "2023-01-01"} } } ``` Structure 2: ```json { "card": { "front": "Define JSON", "back": "JavaScript Object Notation", "metadata": {"difficulty": "easy", "created": "2023-01-01",} } } ``` Which statement is correct?
IntermediateAnswers and explanations are in the Veda app.
Q28. A flash card application stores cards in a JSON array. Which of the following JSON arrays is syntactically correct and contains exactly three cards, each with a "front" and "back"?
IntermediateAnswers and explanations are in the Veda app.
Topper level · 3 questions
Q29. A flash card application imports a JSON file containing an array of cards. The file has the following structure: ```json [ { "front": "What is the capital of France?", "back": "Paris" }, { "front": "What is the square root of 16?", "back": "4" }, { "front": "What is the boiling point of water?", "back": "100°C" } ] ``` A developer notices that the third card's "back" value contains the degree symbol (°). The JSON parser throws an error. Which of the following is the most likely cause?
AdvancedAnswers and explanations are in the Veda app.
Q30. A developer needs to store a flash card with a mathematical formula that includes a fraction. The front of the card is: "Solve for x: $\frac{3x + 2}{5} = 7$". The developer writes the following JSON: ```json { "front": "Solve for x: $\frac{3x + 2}{5} = 7$", "back": "x = 11" } ``` When parsed, this JSON is invalid. Which of the following corrections will make the JSON valid while preserving the LaTeX expression exactly as intended?
AdvancedAnswers and explanations are in the Veda app.
Q31. A flash card dataset is stored in a JSON file with the following structure: ```json { "deck": "Advanced Math", "cards": [ { "front": "What is the integral of $e^x$?", "back": "$e^x + C$" }, { "front": "What is the limit of $1/x$ as $x \\to \\infty$?", "back": "0" } ] } ``` A developer claims that this JSON is invalid because the second card's "front" contains a LaTeX expression with escaped backslashes (`\\to` and `\\infty`). Which of the following statements is correct?
AdvancedAnswers and explanations are in the Veda app.
Your notes can be a kit like these
Every kit here was made from real study material. Point Veda at a chapter, a PDF, a photo or a link and get notes, flashcards, practice MCQs, games and a scored test — free to start, in more than 40 languages.
- Chapter notes
- Flashcards
- Practice MCQs
- Scored tests
- Paper Solver
Get Veda free See what students get
Free to start · Android app and web · More than 40 languages