JSON LinkedIn Skill Assessment Answer

Here, We see JSON LinkedIn Skill Assessment Answer. This assessment test consists 15-20 MCQs to demonstrate your knowledge in your selected skills. MCQs comes from different topics – JSON Comparison, Data Types, Limitations and Usage, Queries, Syntax Rules.


JSON LinkedIn Skill Assessment :-

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?

[
    'red',
    'blue',
    'green'
]
  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 element
  2. a header request
  3. the


  4. comments✔️
  5. arrays
  6. 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
null
not null
  1. B
null
null
not null
  1. C
not null
null
null
  1. D
null
null
null

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.022E23"
  3. constant: 6.022E23
  4. constant: "6.022E23"

Explanation: Scientific Notation is a valid JSON number. You can use e or E. (Reference)

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

  1. Scroll to Top