JSON LinkedIn Skill Assessment Answer

Q1. By convention, what name is used for the first key in a JSON schema?

  1. schema
  2. $schema✔️
  3. JsonSchema
  4. JSONschema

Q2. Which code is the closest JSON equivalent of the data shown?

  1. A✔️
["red", "blue", "green"]
  1. B
["red", "blue", "green"]
  1. C
  "color": "red",
  "color": "blue",
  "color": "green"
  1. D
  "red": "red",
  "blue": "blue"

Q3. Which JavaScript method converts a JavaScript value to Json?

  1. JSON.parse()
  2. JSON.stringify()✔️
  3. JSON.toString()
  4. JSON.objectify()

Q4. Which data type is NOT part of JSON standard?

  1. string
  2. number
  3. date✔️
  4. array

Q5. Which term is commonly used to refer to converting data to JSON?

  1. unpacking
  2. serialization✔️
  3. deserialization
  4. parsing

Q6. Which code uses the correct JSON syntax to encode the key/value pair shown?

accountNum: ‘000605802’

  1. “accountNum”: “000605802”✔️
  2. accountNum: “000605802”
  3. “accountNum”: 000605802
  4. accountNum: 000605802

Q7. What character do you specify before a JSON control character when you want to use that control characters as a literal part of a string?

  1. /
  2. \✔️
  3. :
  4. {

Q8. Which date type is part of the JSON standard?

  1. Boolean✔️
  2. map
  3. promise
  4. function

Q9. Which key name is used to specify properties that must be included for JSON to be valid?

  1. important
  2. base
  3. core
  4. required✔️

Q10. Which is the valid JSON equivalent of the data shown?

	photo: {
	width: 1600,
	height: 900,
	binaries: {
	url: 'https://www.example.com/images/34097349843',
	thumbnail: 'https://www.example.com/images/thumbs/34097349843'
	animated: false,
	tags: [116, 943, 234, 38793],
  1. A
  "photo": {
    "width": 1600,
    "height": 900,
    "binaries": {
      "url": "https://www.example.com/images/34097349843",
      "thumbnail": "https://www.example.com/images/thumbs/34097349843"
    "animated": "false",
    "tags": [116, 943, 234, 38793]
  1. B
  "photo": {
    "width": 1600,
    "height": 900,
    "binaries": {
      "url": "https://www.example.com/images/34097349843",
      "thumbnail": "https://www.example.com/images/thumbs/34097349843"
    "animated": false,
    "tags": [116, 943, 234, 38793]
  1. C✔️
  "photo": {
    "width": 1600,
    "height": 900,
    "binaries": {
      "url": "https://www.example.com/images/34097349843",
      "thumbnail": "https://www.example.com/images/thumbs/34097349843"
    "animated": false,
    "tags": [116, 943, 234, 38793]
  1. D
  "photo": {
    "width": "1600",
    "height": "900",
    "binaries": {
      "url": "https://www.example.com/images/34097349843",
      "thumbnail": "https://www.example.com/images/thumbs/34097349843"
    "animated": "false",
    "tags": ["116", "943", "234", "38793"]

Q11. How do you store several paragraphs of text as a string in JSON?

  1. Escape all whitespaces expect space characters.✔️
  2. Escape line breaks.
  3. Escape paragraphs.
  4. Remove all whitespaces

Q12. What data type is represented by the value of the key/value pair shown?

loggedIn: true

  1. string
  2. Boolean✔️
  3. number
  4. object

Q13. If you need to store the loggedIn status of a user in JSON as a boolean, what is the correct syntax?

  1. “loggedIn”: (true)
  2. loggedIn: “true”
  3. “loggedIn”: true✔️
  4. loggedIn: {true}

Q14. What does JSON with padding (JSON-P) use to make a request?

  1. an <origin> element
  2. a header request
  3. the <script> element✔️
  4. the XMLHttpRequest object

Q15. Which value is supported in the JSON specifications?

  1. undefined
  2. infinity
  3. NaN
  4. null✔️

Q16. Which JavaScript method converts JSON to a JavaScript value?

  1. JSON.parse()✔️
  2. JSON.stringify()
  3. JSON.toString()
  4. 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.

Q18. Which code uses valid JSON syntax for the text “Centennial Olympics?

  1. A
"host": "Atlanta",
"year": 1996
/_ Centennial Olympics _/
  1. B
"host": "Atlanta",
"year": 1996,
/_ Centennial Olympics _/
  1. C
  "host": "Atlanta",
  "year": 1996
  // Centennial Olympics
  1. D✔️
  "host": "Atlanta",
  "year": 1996,
  "comments": "Centennial Olympics"

Q19. Can trailing commas be used in objects and arrays?

  1. yes
  2. only if there is more than one item
  3. no✔️
  4. only when arrays and objects contain more than 10 items

Q20. Which whitespace characters should be escaped within a string?

  1. All whitespace is allowed.
  2. double quotes, slashes new lines, and carriage returns
  3. new lines and carriage returns only✔️
  4. double quotes only

Q21. Which is supported by YAML but not supported by JSON?

  1. nested
  3. arrays
  4. null values

Q22. Which is an invalid JSON value?

  1. “’|=()(X 72()|/||*’”
  2. “|=()(X 72()|/||*”
  3. “|=()(X” “72()|/||*”
  4. “\s()(X 72()|/||*”✔️

Q23. How do you encode a date in JSON?

  1. Convert the date to UTC and enclose in quotes.
  2. Encode the date as string using the ISO-8601 date format.✔️
  3. Wrap the date in double quotes.
  4. Add a “date” key to your object and include the date as string.

Q24. What’s wrong with this JavaScript?

JSON.parse({“first”: “Sarah”, “last”: “Connor”}) ;

  1. JSON should be wrapped with curly braces.
  2. JSON.parse() is missing an argument.
  3. The value supplied to JSON.parse() is not a string.✔️
  4. Nothing is wrong with it.

Q25. What does this JavaScript code print?

printNullness(JSON.parse('{ "lemmings": [] }'));
printNullness(JSON.parse('{ "lemmings": null }'));
printNullness(JSON.parse('{ "lemmings": "null" }'));

function printNullness() {
  if (testMe.lemmings == null) console.log('null');
  else console.log('not null');
  1. A✔️
not null
not null
  1. B
not null
  1. C
not null
  1. D

Q26. What tool might you use to validate your JSON?

  1. JSONLint✔️
  2. ValidateJSON
  3. JSONFiddle
  4. TextEdit

Q27. What characters denote strings in JSON?

  1. double quotes✔️
  2. smart (curly) quotes
  3. single or double quotes
  4. single quotes

Q28. Which code is a valid JSON equivalent of the key/value pair shown that also preserves the data type? constant: 6.022E23

  1. “constant”: “6.022E23”
  2. “constant”: “6.022\E23”
  3. constant: 6.022E23✔️
  4. constant: “6.022E23”


Q29. Which element is added to the DOM to create a JSON-P request?

  1. <object>
  2. <script>✔️
  3. <json>
  4. <meta>

Q30. Why do so many APIs use JSON?

  1. Because it’s object-based.
  2. Because it’s a simple and adaptable format for sharing data.✔️
  3. Because it’s based on JavaScript.
  4. Because it is derived from SGML.

Q31. You need to assemble a list of members, but your JSON is not parsing correctly. How do you change it?

  "avengers": [
    "iron man",
    "black widow",
    "ant man",
    "spider man'
  1. A✔️
  "avengers": ["iron man", "hulk", "thor", "black widow", "ant man", "spider man"]
  1. B
  'avengers': [
  {'iron man',
  'black widow',
  'ant man',
  'spider man'}
  1. C
  "avengers": ["iron man", "hulk", "thor", "black widow", "ant man", "spider man"]
  1. D
  "avengers": {[
    "iron man",
    "black widow",
    "ant man",
    "spider man"

Q32. When building dynamic web applications using AJAX, developers originally used the _ data format, which has since been replaced by JSON.

  1. XML✔️
  3. REST
  4. SOAP

Q33. How is a true boolean value represented in JSON?

  1. TRUE
  2. “true”
  3. 1
  4. true✔️

Q34. Which array is valid JSON?

  1. [‘tatooine’, ‘hoth’, ‘dagobah’]
  2. [tatooine, hoth, dagobah]
  3. [“tatooine”, “hoth”, “dagobah”,]
  4. [“tatooine”, “hoth”, “dagobah”]✔️

Q35. What data type is encoded in the outermost component of the JSON shown?

    "year": 2024
    "location": "unknown"
  1. object
  2. array✔️
  3. number
  4. string

Q36. Which is ignored by JSON but treated as significant by YAML?

  1. trailing commas
  2. trailing decimals
  3. whitespace✔️
  4. leading zeroes

Q37. When you need to set the value of a key in JSON to be blank, what is the correct syntax for the empty value?

  1. FALSE
  2. 0
  3. “”
  4. null✔️

Q38. How do you assign a number value in JSON?

  1. Escape the number with a backslash.
  2. Enclose the number in double quotes.
  3. Enclose the number in single quotes.
  4. Leave the number as is.✔️

Q39. Which code uses the correct JSON syntax for encoding a key/value pair with a null value?

  1. “lastVisit”: “null”✔️
  2. lastVisit: null
  3. “lastVisit”: 0
  4. “lastVisit”: undefined

Q40. Which reference to the Unicode character U+1F602 complies with the JSON standard?

  1. 128514
  2. d83dde02
  3. \uD83D\uDE02✔️
  4. &#128514;

Q41. Which code uses the correct JSON syntax for a key/Value pair containing a string?

  1. “largest”: “blue whale”✔️
  2. largest: ‘blue whale’
  3. ‘largest’: ‘blue whale’
  4. largest: “blue whale”

Q42. Which key name is used to specify data type in a JSON schema?

  1. data
  2. schemadata
  3. schematype
  4. type✔️

Q43. Which code is a valid JSON equivalent of the key/value pair shown that also preserves the original value?

  1. “UPC”: \043875
  2. UPC: “043875”
  3. “UPC”: 043875✔️
  4. UPC: ‘043875’

Q44. Which data format is a JSON schema written in?

  1. markdown
  2. YAML
  3. XML
  4. JSON✔️

Q45. Which code is valid JSON equivalent of the key/value pair shown that also preserves the data type?

  1. “variance”: “-0.0823″✔️
  2. variance: “-0.0823”
  3. “variance”: “-0.0823”
  4. variance: -0.0823

Q46. With what character should key/value pairs be separated?

  1. colon✔️
  2. space
  3. semicolon
  4. comma

Q47. What character separates keys from values?

  1. :✔️
  2. ->
  3. ::
  4. .

Q48. If a string contains line breaks, what should you do?

  1. Wrap line breaks in single quotation marks
  2. Make no changes, because whitespace is allowed
  3. Replace any line breaks with \r
  4. Replace any line breaks with \n✔️

Q49. Which number types are available in javascript but not supported in json?

  1. Fractional and Transcendental
  2. Infinity or Rational
  3. Rational and Irrational
  4. Infinity or NaN✔️

Q50. How should a date value be stored in JSON?

  1. As a string with quotes
  2. As a string without quotes
  3. As a string in ISO 8583 format
  4. As a string in ISO 8601 format✔️

Q51. Is the JSON code shown here valid?

Is the JSON code shown here valid?

  1. No, emojis must be escaped with a backslash.
  2. No, JSON strings are not allowed to use emojis.
  3. No, emojis should never be enclosed with double quotes.
  4. Yes, emojis are valid characters because JSON strings are unicode.✔️

Q52. What data structure do you use to encode ordered information?

  1. list
  2. array✔️
  3. struct
  4. indexed hash

Q53. What are valid values in JSON?

  1. arrays, strings, numbers, true/false
  2. hashes, arrays, strings, numbers, booleans, null
  3. arrays, objects, lists, strings, numbers, booleans
  4. objects, arrays, strings, numbers, booleans, null✔️

Q54. Which key format is valid JSON?

  1. key: “value”
  2. “key”: “value”✔️
  3. key, “value”
  4. ‘key’: ‘value’

Q55. What data type is encoded in the outermost component of the JSON shown?

  "result": [
      "year": 2024
      "location": "unknown"
  1. number
  2. array
  3. string
  4. object✔️

Q56. What’s wrong with this JSON object?

  "series": "Star Trek",
  "episodes": "The Trouble with Tribbles"
  1. Key/value pairs should be separated by semicolons.
  2. Keys should be enclosed with double quotes.✔️
  3. Key/value pairs should always have a trailing comma.
  4. Keys and values should be enclosed with single quotes.

Q57. How should comments be formatted in JSON?

  1. Wrap the comments in single quotes and place it at the bottom of the file.
  2. Wrap the comments in double parentheses.
  3. Escape comments by placing two slashes at the start of the comment.
  4. JSON does not support comments.✔️

Q58. How would you make the following string valid in JSON?

“name”: ‘bb-8’

  1. name: “bb-8”
  2. “name”: ‘bb-8’
  3. “name”: “bb-8″✔️
  4. “name”: bb-8

Q59. How are values separated in JSON?

  1. with brackets
  2. with colons
  3. with commas✔️
  4. with parentheses

Q60. With which programming language is JSON best used?

  1. any language, as JSON is language agnostic.✔️
  2. Ruby
  3. JavaScript
  4. Python

Q61. What values can arrays contain?

  1. only numbers
  2. any valid JSON value✔️
  3. only strings and numbers
  4. only strings

Q62. What technique can be used to represent complex objects with JSON?

  1. reserialization
  2. nesting✔️
  3. memorization
  4. minimization

Q63. What characters are used to enclose an array?

  1. []
  2. {}✔️
  3. “”
  4. ()

Q64. What is the official MIME type for JSON?

  1. text/json
  2. text/javascript
  3. application/json✔️
  4. data/json

Q65. What character cannot be part of string within JSON without additional formatting?

  1. /
  2. “✔️
  3. -
  4. :

Q66. Which data type is part of the JSON standard?

  1. function
  2. promise
  3. Boolean✔️
  4. map

Q67. Which data type is not part of the JSON standard?

  1. number
  2. string
  3. array
  4. date✔️

Q68. Which character separates keys from values?

  1. :✔️
  2. ->
  3. ::
  4. .

Q69. What is the purpose of JSON?

  1. to provide a simple way to serialize and deserialize data between different sources✔️
  2. to provide a way to store data for machine learning
  3. to provide an archival solution for data warehousing
  4. to provide a way for JavaScript to run other languages

Q70. Can you assume the order of keys in an object?

  1. No, but you can sort the keys with JSON.sort().✔️
  2. Yes, object keys are always ordered alphabetically.
  3. Yes, but only when the object is first parsed.
  4. No, you can never assume object keys will be in order.

Q71. With what character should object keys be enclosed?

  1. *
  2. #
  3. ^
  4. "✔️

Q72. What is the maximum number of key/value pairs that JSON supports?

  1. 10,000
  2. 1000
  3. There is no defined limit.✔️
  4. 1 million

Q73. What is the recommended term used to refer to multiple resources?

  1. a swarm
  2. multiple resources✔️
  3. a collection
  4. a group

Q74. Does JSON support signed numbers?

  1. yes, but only if they are enclosed in quotes
  2. only with integers
  3. no✔️
  4. yes

Q75. What two nonnumerical characters can numbers contain?

  1. dash and dot✔️
  2. dash and comma
  3. comma and exclamation point
  4. dot and comma

Q76. What JavaScript method is used to load JSON data?

  1. JSON.ingest()
  2. JSON.convert()
  3. JSON.read()
  4. JSON.parse()✔️

Q77. How are the values in an array separated?

  1. with right arrows
  2. with colons
  3. with semicolons
  4. with commas✔️

Q78. What is the minimum number of values in an array?

  1. zero✔️
  2. one
  3. two
  4. three

Q79. In JSON, a set of brackets ([]) is used to denote __, whereas curly braces ({}) denote __.

  1. arrays; objects✔️
  2. objects; functions
  3. arrays; functions
  4. key/value pairs; arrays

Q80. How does JSON represent truth, falsity and nullness?

  1. true, false, null✔️
  2. true, false
  4. true, false, null

Q81. What technique can you use to safely encode very large numbers?

  1. Store the number as a string✔️
  2. Convert the number into an exponent.
  3. Round the number to the nearest 10-digit number.
  4. Split the number into smaller parts.

Q82. Which code is a valid JSON equivalent of the key/value pair shown that also preserves the data type?

variance: -0.0823

  1. variance: “-0.0823”
  2. variance: -0.0823
  3. “variance”: “-0.0823″✔️
  4. “variance”: “-0.0823”

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?

myVehicleContents = {
  van: {
    inside: {
      'glove box': 'maps',
      'passenger seat': 'crumbs',
    exterior: {
      trunk: 'jack',
  1. A
myVehicleContents.van.inside['glove box'] = gloveBoxContents;
  1. B✔️
var gloveBoxContents = myVehicleContents.van.inside['glove box'];
  1. C
var gloveBoxContents = myVehicleContents.van.glove box.contents;
  1. D
myVehicleContents.van.inside['inside'] = gloveBoxContents;


Q84. What characters are used to define an object?

  1. ||
  2. {}✔️
  3. ()
  4. []

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?

  1. It has a flat architecture.
  2. It has a rewritable structure.
  3. It has an array-only structure.✔️
  4. It has a table structure.

Q86. What is supported by YAML but not supported by JSON?

  1. arrays
  2. null values
  4. nested

Q87. Which is an invalid JSON value? (same as previous question, but different possible answers)

  1. “’|=()(X 72()|/||*’”
  2. “\s()(X 72()|/||*”✔️
  3. “|=()(X” “72()|/||*”
  4. “|=()(X 72()|/||*”

Q88. If an object key contains spaces, how can you access its value in JavaScript?

  1. Remove spaces from the key before accessing the value.
  2. Use dot notation to access the value.
  3. Use object key index to access the value.
  4. Use bracket notation to access the value.✔️

Q89. When parsing JSON, “caching” is a method used to __.

  1. remove duplicate data from a server
  2. temporarily store data for faster access✔️
  3. store excess information in chunks to be reviewed later
  4. clog up a web browser with useless information

Q90. What is the only valid whitespace character within a string that does not require an escape character?

  1. line break
  2. space✔️
  3. tab
  4. return

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top