JSON MCQ Test: JSON MCQs - Practice Questions
1. What is the purpose of the JSON Hypertext Application Language (HAL) format?
2. Which method is used to check if a key exists in a JSON object in JavaScript?
3. What is the significance of the MIME type 'application/json'?
4. Which file extension is commonly used for JSON files?
5. In JSON, what is the purpose of an array?
6. How is a JSON array different from a JSON object?
7. Which symbol is used to denote the start and end of a JSON object?
8. What is the purpose of the JSON Lines format?
9. Which data type is not supported in JSON?
10. Which character is used to separate key-value pairs in a JSON object?
11. How can you include a nested object within a JSON object?
12. How is a comment added in a JSON file?
13. Which of the following is a valid JSON array?
14. What is the purpose of the JSON-LD (JSON for Linked Data) format?
15. What is the purpose of a JSON array?
16. How is null represented in JSON?
17. Which data types can be used in JSON?
18. In JSON, how is an object key represented?
19. Which method is used to validate a JSON schema against JSON data in JavaScript?
20. What is the purpose of the JSON Merge Patch format?
21. What does JSON.parse() do in JavaScript?
22. What is the purpose of the JSON Web Token (JWT)?
23. What is the purpose of the JSON Pointer?
24. Which method is used to pretty-print a JSON string in JavaScript?
25. How is a JSON object different from a JavaScript object?
26. In JSON, how is a string represented?
27. Which method is used to stringify a JavaScript object into a JSON-formatted string?
28. In JSON, what is the purpose of a boolean value?
29. Which method is used to add an element to the end of a JSON array in JavaScript?
30. What is the purpose of the JSON-RPC protocol?
31. How can you represent a null value in a JSON file?
32. What does the term 'serialization' mean in the context of JSON?
33. In JSON, how is a number represented?
34. Which JSON data type is used to represent a date?
35. Which RFC defines the JSON format?
36. What is the purpose of the JSONP (JSON with Padding) technique?
37. In JSON, how is a boolean value 'true' represented?
38. What is the purpose of the JSON Schema?
39. What does the JSON Patch format enable?
40. Which symbol is used to separate key and value pairs in a JSON object?