1. JSON name/value pair is written as
2. What two structures is JSON built on?
3. Which statement about the space parameter in JSON.stringify() is false?
4. What does JSONP stand for?
5. Which of the following code will not throw an error?
6. What is a JSONStringer used for?
7. Which of the following control characters cannot be used when writing a JSON string without escaping?
8. What is the value of json in the following code? var cars = []; cars[0] = 'Ford'; cars[1] = 'Toyota'; cars[2] = 'BMW'; var json = JSON.stringify({x: cars});
9. JSON strings have to be in
10. Does whitespace matter in JSON?
11. What is JSONP meant to mitigate?
12. Does JSON support Unicode characters?
13. In this example, what would the TYPE of employee.hireDate be? { "employee" : { "type" : "Director", "functions" : ['sales', 'marketing'], "hireDate" : "March 8, 2011" } }
14. In this example, what is the VALUE of employee.type? { "employee" : { "type" : "Director", "functions" : ['sales', 'marketing'] } }
15. Which of the following code will throw an error?
16. Which of the following code will return a valid JSON object?
17. Which is true about JSON namespacing?
18. Which of the following is a valid JSON string?
19. JSON elements are separated by
20. What keywords are reserved in JSON and cannot be used as keys?
21. Which statement about the replacer parameter in JSON.stringify() is true?
22. Which of these is proper a JSON array?
23. Which answer represents the following order of TYPES? Object, String, Boolean, Number
24. What does JSON stand for?
25. In the below notation, Employee is of type { "Employee": { "Name": "Amy", "Age": 25 } }
26. In modern websites what is the common usage for JSON?
27. Which of these is a benefit JSON has over XML?
28. Given this JSON example: { "Employee": { "Name": "Amy", "Age": 25 } }; What is the type of Employee.Age ?
29. In the below notation, Employee is of type { "Employee": [ "Amy", "Bob", "John" ] }
30. Which of these is correct about the JSON standard?
31. True of False? The external form of a JSON object always begins and ends with {}
32. Which code uses the correct JSON syntax for a key/Value pair containing a string?
JSON MCQs | Topic-wise