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
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)
"'|=(_)(X 72(_)|\/||*'"
"\s(_)(X 72(_)|\/||*"
"|=(_)(X\" \"72(_)|\/||*"
"|=(_)(X 72(_)|\/||*"
Q88. How can you change this array to make it valid?
{"rey",'leia',"ashoka",}
['rey', 'leia', "ashoka",}
['rey', 'leia', 'ashoka',}
["rey", "leia", "ashoka"]
{"rey", "leia", "ashoka"}
Q89. If a non-zero number starts with a zero, what character should immediately follow the zero?
zero or more digits
one or more digits
a period
a dollar sign
Q90. Who would you modify the array below to store additional attributes for each student?
{
"students": ["Tess", "Erin", "June"]
}
Convert each student to an object, then add key/value paris to each student object as needed.
Add additional name/value pairs, separated by commas, after "students".
Convert each student into an array and add extra elements to the array.
Wrap the existing "students" key with curly braces.
Q91. Which is not a valid JSON number
99999999999999999999
"42"
-32
1111.00.110011
Q92. What is the maximum string length in JSON?
512 characters
There is no defined limit.
2,056 characters
1,024 characters
Q93. What method is used to export a JavaScript object into JSON notation?
JSON.convert()
JSON.stringify()
JSON.export()
JSON.string()
Q94. How would you update this JSON to indicate that Jane is now available for part-time work ?
Hint: true needs to be a boolean and part-time a string so in double quotes.
Q95. When you need to set the value of a key in JSON to be blank, what is the correct syntax for the empty value?
""
0
FALSE
null
Explanation: The other options won't work as well, as demonstrated by this StackOverflow post.
Q96. What is true about paginated reports? (Select all that apply.)
A. They are formatted to fit well on a page.
B. They shrink the report data to fit on a page.
C. They truncate the report data to fit on a single page.
D. They are both printable and shareable.
A,D
B OR C
A,B,D
A,C,D
Explanation: The true statements about paginated reports are:
A. They are formatted to fit well on a page.
D. They are both printable and shareable.
So the correct options are A and D.
Q97. As a Scrum Master you have noticed a pattern that the most interesting stories on the sprint backlog get started right away, and the least interesting stories languish or don't get done. What should you do?
During story point estimation, increase the points assigned to the least interesting stories so the team can boost their velocity.
Share your observation with the team and invite them to own and solve the problem.
Ask the team to use a lottery system to assign each story.
Ask the Tech Lead to assign every story to a developer so they all get done efficiently and with accountability.
Explanation: Encourage open communication within the team and involve them in problem-solving to find a solution that works best for their specific context and helps address the issue of disinterest in certain stories.
Q98. Which is the valid JSON equivalent of the data shown?
Q104. Which reference to the Unicode character U+1F602 complies with the JSON standard?
128514
d83dde02
\uD83D\uDE02
😂
Q105. How should comments be formatted in JSON?
Wrap the comments in single quotes and place it at the bottom of the file.
Wrap the comments in double parentheses.
Escape comments by placing two slashes at the start of the comment.
JSON does not support comments.
Q106. What is the purpose of JSON-P (JSON with padding) in web development, and how is it typically used?
To validate JSON data before parsing it in JavaScript.
To provide additional padding for JSON objects to improve readability.
To overcome the same-origin policy limitation when making cross-domain AJAX requests.
To compress JSON data for faster transmission over the network.
Explanation:- JSON-P, or JSON with padding, serves the purpose of overcoming the same-origin policy limitation in web development. The same-origin policy restricts web pages from making AJAX requests to a different domain for security reasons. JSON-P works by wrapping JSON data in a JavaScript function call, allowing data to be retrieved from an external domain as if it were a script. This technique is commonly used for securely fetching data from external APIs, making it a valuable tool for cross-domain data exchange in web applications.
Q107. In a JSON document, how can you represent a key that contains special characters, such as spaces or hyphens, to ensure proper parsing and access in JavaScript?
Wrap the key in single quotes.
Enclose the key in square brackets.
backslashes before special characters.
Enclose the key in double quotes.
Explanation:- When you have a key in a JSON document that contains special characters, spaces, or hyphens, it is essential to enclose the key in double quotes. JSON requires keys to be represented within double quotes to ensure proper parsing and access in JavaScript. This ensures that JavaScript can correctly interpret keys with special characters or spaces and access their associated values.
Q108. Which is ignored by JSON but treated as significant by YAML?
trailing commas
trailing decimals
whitespace
leading zeroes
Q109. Which code uses valid JSON syntax for the text "Centennial Olympics?