Q11. How do you store several paragraphs of text as a string in JSON?
Escape all whitespaces expect space characters.
Escape line breaks.
Escape paragraphs.
Remove all whitespaces
Q12. What data type is represented by the value of the key/value pair shown?
loggedIn: true
string
Boolean
number
object
Q13. If you need to store the loggedIn status of a user in JSON as a boolean, what is the correct syntax?
“loggedIn”: (true)
loggedIn: “true”
“loggedIn”: true
loggedIn: {true}
Q14. What does JSON with padding (JSON-P) use to make a request?
an <origin> element
a header request
the <script> element
the XMLHttpRequest object
Q15. Which value is supported in the JSON specifications?
undefined
infinity
NaN
null
Q16. Which JavaScript method converts JSON to a JavaScript value?
JSON.parse()
JSON.stringify()
JSON.toString()
JSON.objectify()
Q17. Transferring JSON information from client to server and back again often includes HTTP requests. Match each method with the best choice describing its use.
1.Sends data to specific server to create or update information.
2.Sends data to specific server to create or update information without the risk of creating the resource more than once.
3.Previews what the GET request response might be without the body of the text.
4.Learns the communication channels used by the target source.
5.Requests information from a specific source.
6.Removes information.
1.POST 2.DELETE 3.OPTIONS 4.HEADER 5.GET 6.PUT
1.POST 2.PUT 3.HEADER 4.OPTIONS 5.GET 6.DELETE
1.POST 2.DELETE 3.OPTIONS 4.HEADER 5.GET 6.PUT
1.POST 2.PUT 3.HEADER 4.OPTIONS 5.GET 6.DELETE
Q18. Which code uses valid JSON syntax for the text “Centennial Olympics?
Q83. Based on the JSON object shown, which JavaScript code would you use to find out what is in this vehicle’s glove box while assigning the glove box contents to a new variable?
Q84. What characters are used to define an object?
[ ]
{}
()
[]
Q85. The JSON structure features nested objects and arrays. Sometimes the data containing these features exists in relational databases. How is the relational structure different that JSON?
It has a flat architecture.
It has a rewritable structure.
It has an array-only structure.
It has a table structure.
Q86. What is supported by YAML but not supported by JSON?
arrays
null values
comments
nested
YAML supports # comments but not JSON
Q87. Which is an invalid JSON value? (same as previous question, but different possible answers)