Home > General Studies (Hindi) > Quizzes > JSON Fundamentals Test
JSON Fundamentals Test
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 26% Most missed: “What keywords are reserved in JSON and cannot be used as keys?”
JSON Fundamentals Test
Time left 00:00
25 Questions

1. In modern websites what is the common usage for JSON?
2. Which is true about JSON namespacing?
3. What is the value of obj in the following code? var obj = JSON.parse('{'animal': 'cat'}' - function(k - v) { if (k == '') return v else return 'dog'; });
4. What two structures is JSON built on?
5. Which of the following code will return a valid JSON object?
6. In this example - what is the VALUE of employee.type? { 'employee' : { 'type' : 'Director' - 'functions' : ['sales' - 'marketing'] } }
7. Which of these data interchange formats has seen a decline in usage in favor of JSON?
8. What keywords are reserved in JSON and cannot be used as keys?
9. Does JSON support Unicode characters?
10. How does JSON being 'lightweight' translate into a benefit for the site visitors?
11. What does JSON stand for?
12. Which of the following is not a JSON type?
13. JSON strings have to be in
14. In this example - what would the VALUE of employee.functions[1] be? { 'employee' : { 'type' : 'Director' - 'functions' : ['sales' - 'marketing'] } }
15. JSON elements are separated by
16. What is the value of json in the following code? var days = {}; days['Monday'] = true; days['Wednesday'] = true; days['Sunday'] = false; var json = JSON.stringify({x: days});
17. What is JSONP meant to mitigate?
18. JSON name/value pair is written as
19. Which of these is proper a JSON array?
20. Which of these is correct about the JSON standard?
21. What is the return value for JSON.parse()?
22. Which of the following code will throw an error?
23. In this example - what is the TYPE of employee.functions? { 'employee' : { 'type' : 'Director' - 'functions' : ['sales' - 'marketing'] } }
24. What is the value of json in the following code? var obj = { fruit: 'apple' - toJSON: function () { return 'orange'; } }; var json = JSON.stringify({x: obj});
25. True of False. The order of JSON objects is always preserved.