LinkedIn JSON Skill Assessment Answers (2024)

Udacity Offer 50 OFF

The LinkedIn Skill Assessments feature allows you to demonstrate your knowledge of the skills you’ve added on your profile. Job posters on LinkedIn can also add Skill Assessments as part of the job application process. This allows job posters to more efficiently and accurately verify the crucial skills a candidate should have for a role.

LinkedIn JSON Skill Assessment Answers
LinkedIn JSON Skill Assessment Answers

The topics in the JSON assessment include:

  • Limitations and Usage
  • Advanced Concepts
  • Objects
  • Syntax Rules
  • JavaScript
  • Strings

Question Format

Multiple Choice

Language

English

Table of Content


LinkedIn JSON Skill Assessment Answers

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

  • schema
  • $schema
  • JsonSchema
  • JSONschema

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

[
‘red’,
‘blue’,
‘green’
]
  • A✔️
    [“red”, “blue”, “green”]


  • B
    [“red”, “blue”, “green”]

  • C
    {
    “color”: “red”,
    “color”: “blue”,
    “color”: “green”
    }

  • D
    {
    “red”: “red”,
    “blue”: “blue”
    }

Which JavaScript method converts a JavaScript value to Json?

  • JSON.parse()
  • JSON.stringify()
  • JSON.toString()
  • JSON.objectify()

Which data type is NOT part of JSON standard?

  • string
  • number
  • date
  • array

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

  • unpacking
  • serialization
  • deserialization
  • parsing

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

accountNum: ‘000605802’

  • “accountNum”: “000605802”
  • accountNum: “000605802”
  • “accountNum”: 000605802
  • accountNum: 000605802

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?

  • /
  • \
  • :
  • {

Which date type is part of the JSON standard?

  • Boolean
  • map
  • promise
  • function

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

  • important
  • base
  • core
  • required

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],
}
}

  • 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]
    }
    }

  • 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]
    }
    }

  • 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]
    }
    }


  • 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”]
    }
    }

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

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

loggedIn: true

  • string
  • Boolean
  • number
  • object

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}

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

  • an <origin> element
  • a header request
  • the <script> element
  • the XMLHttpRequest object

Which value is supported in the JSON specifications?

  • undefined
  • infinity
  • NaN
  • null

Which JavaScript method converts JSON to a JavaScript value?

  • JSON.parse()
  • JSON.stringify()
  • JSON.toString()
  • JSON.objectify()

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

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

  • A
    {
    “host”: “Atlanta”,
    “year”: 1996
    /_ Centennial Olympics _/
    }

  • B
    {
    “host”: “Atlanta”,
    “year”: 1996,
    /_ Centennial Olympics _/
    }

  • C
    {
    “host”: “Atlanta”,
    “year”: 1996
    // Centennial Olympics
    }

  • D✔️
    {
    “host”: “Atlanta”,
    “year”: 1996,
    “comments”: “Centennial Olympics”
    }

Can trailing commas be used in objects and arrays?

  • yes
  • only if there is more than one item
  • no
  • only when arrays and objects contain more than 10 items

Which whitespace characters should be escaped within a string?

  • All whitespace is allowed.
  • double quotes, slashes new lines, and carriage returns
  • new lines and carriage returns only
  • double quotes only

Which is supported by YAML but not supported by JSON?

  • nested
  • comments
  • arrays
  • null values

Which is an invalid JSON value?

  • “’|=()(X 72()|/||*’”
  • “|=()(X 72()|/||*”
  • “|=()(X” “72()|/||*”
  • “\s()(X 72()|/||*”

How do you encode a date in JSON?

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

What’s wrong with this JavaScript?

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

  • JSON should be wrapped with curly braces.
  • JSON.parse() is missing an argument.
  • The value supplied to JSON.parse() is not a string.
  • Nothing is wrong with it.

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’);
}

  • A✔️
    not null
    null
    not null


  • B
    null
    null
    not null

  • C
    not null
    null
    null

  • D
    null
    null
    null

What tool might you use to validate your JSON?

  • JSONLint
  • ValidateJSON
  • JSONFiddle
  • TextEdit

What characters denote strings in JSON?

  • double quotes
  • smart (curly) quotes
  • single or double quotes
  • single quotes

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

  • “constant”: “6.022E23”
  • “constant”: “6.022\E23”
  • constant: 6.022E23
  • constant: “6.022E23”

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

  • <object>
  • <script>
  • <json>
  • <meta>

Why do so many APIs use JSON?

  • Because it’s object-based.
  • Because it’s a simple and adaptable format for sharing data.
  • Because it’s based on JavaScript.
  • Because it is derived from SGML.

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

{
“avengers”: [
“iron man”,
“hulk”,
“thor”,
“black widow”,
“ant man”,
“spider man’
]
}

  • A✔️
    {
    “avengers”: [“iron man”, “hulk”, “thor”, “black widow”, “ant man”, “spider man”]
    }


  • B
    {
    ‘avengers’: [
    {‘iron man’,
    ‘hulk’,
    ‘thor’,
    ‘black widow’,
    ‘ant man’,
    ‘spider man’}
    ]
    }

  • C
    {
    “avengers”: [“iron man”, “hulk”, “thor”, “black widow”, “ant man”, “spider man”]
    }

  • D
    {
    “avengers”: {[
    “iron man”,
    “hulk”,
    “thor”,
    “black widow”,
    “ant man”,
    “spider man”
    ]}
    }

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

  • XML
  • GRAPHQL
  • REST
  • SOAP

How is a true boolean value represented in JSON?

  • TRUE
  • “true”
  • 1
  • true

Which array is valid JSON?

  • [‘tatooine’, ‘hoth’, ‘dagobah’]
  • [tatooine, hoth, dagobah]
  • [“tatooine”, “hoth”, “dagobah”,]
  • [“tatooine”, “hoth”, “dagobah”]

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

[
{
“year”: 2024
},
{
“location”: “unknown”
}
]
  • object
  • array
  • number
  • string

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

  • trailing commas
  • trailing decimals
  • whitespace
  • leading zeroes

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

  • FALSE
  • 0
  • “”
  • null

How do you assign a number value in JSON?

  • Escape the number with a backslash.
  • Enclose the number in double quotes.
  • Enclose the number in single quotes.
  • Leave the number as is.

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

  • “lastVisit”: “null”
  • lastVisit: null
  • “lastVisit”: 0
  • “lastVisit”: undefined

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

  • 128514
  • d83dde02
  • \uD83D\uDE02
  • 😂

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

  • “largest”: “blue whale”
  • largest: ‘blue whale’
  • ‘largest’: ‘blue whale’
  • largest: “blue whale

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

  • data
  • schemadata
  • schematype
  • type

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

  • “UPC”: \043875
  • UPC: “043875”
  • “UPC”: 043875
  • UPC: ‘043875’

Which data format is a JSON schema written in?

  • markdown
  • YAML
  • XML
  • JSON

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

  • “variance”: “-0.0823”
  • variance: “-0.0823”
  • “variance”: “-0.0823”
  • variance: -0.0823

With what character should key/value pairs be separated?

  • colon
  • space
  • semicolon
  • comma

What character separates keys from values?

  • :
  • ->
  • ::
  • .

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

  • Wrap line breaks in single quotation marks
  • Make no changes, because whitespace is allowed
  • Replace any line breaks with \r
  • Replace any line breaks with \n

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

How should a date value be stored in JSON?

  • As a string with quotes
  • As a string without quotes
  • As a string in ISO 8583 format
  • As a string in ISO 8601 format

Is the JSON code shown here valid?

  • No, emojis must be escaped with a backslash.
  • No, JSON strings are not allowed to use emojis.
  • No, emojis should never be enclosed with double quotes.
  • Yes, emojis are valid characters because JSON strings are unicode.

What data structure do you use to encode ordered information?

  • list
  • array
  • struct
  • indexed hash

What are valid values in JSON?

  • arrays, strings, numbers, true/false
  • hashes, arrays, strings, numbers, booleans, null
  • arrays, objects, lists, strings, numbers, booleans
  • objects, arrays, strings, numbers, booleans, null

Which key format is valid JSON?

  • key: “value”
  • “key”: “value”
  • key, “value”
  • ‘key’: ‘value’

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

{
“result”: [
{
“year”: 2024
},
{
“location”: “unknown”
}
]
}

  • number
  • array
  • string
  • object

What’s wrong with this JSON object?

{
“series”: “Star Trek”,
“episodes”: “The Trouble with Tribbles”
}

  • Key/value pairs should be separated by semicolons.
  • Keys should be enclosed with double quotes.
  • Key/value pairs should always have a trailing comma.
  • Keys and values should be enclosed with single quotes.

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.

How would you make the following string valid in JSON?

“name”: ‘bb-8’

  • name: “bb-8”
  • “name”: ‘bb-8’
  • “name”: “bb-8”
  • “name”: bb-8

How are values separated in JSON?

  • with brackets
  • with colons
  • with commas
  • with parentheses

With which programming language is JSON best used?

  • any language, as JSON is language agnostic.
  • Ruby
  • JavaScript
  • Python

What values can arrays contain?

  • only numbers
  • any valid JSON value
  • only strings and numbers
  • only strings

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

  • reserialization
  • nesting
  • memorization
  • minimization

What characters are used to enclose an array?

  • []
  • {}
  • “”
  • ()

What is the official MIME type for JSON?

  • text/json
  • text/javascript
  • application/json
  • data/json

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

  • /
  • :

Which data type is part of the JSON standard?

  • function
  • promise
  • Boolean
  • map

Which data type is not part of the JSON standard?

  • number
  • string
  • array
  • date

Which character separates keys from values?

  • :
  • ->
  • ::
  • .

What is the purpose of JSON?

  • to provide a simple way to serialize and deserialize data between different sources
  • to provide a way to store data for machine learning
  • to provide an archival solution for data warehousing
  • to provide a way for JavaScript to run other languages

Can you assume the order of keys in an object?

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

With what character should object keys be enclosed?

  • *
  • #
  • ^

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

  • 10,000
  • 1000
  • There is no defined limit.
  • 1 million

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

  • a swarm
  • multiple resources
  • a collection
  • a group

Does JSON support signed numbers?

  • yes, but only if they are enclosed in quotes
  • only with integers
  • no
  • yes

What two nonnumerical characters can numbers contain?

  • dash and dot
  • dash and comma
  • comma and exclamation point
  • dot and comma

What JavaScript method is used to load JSON data?

  • JSON.ingest()
  • JSON.convert()
  • JSON.read()
  • JSON.parse()

How are the values in an array separated?

  • with right arrows
  • with colons
  • with semicolons
  • with commas

What is the minimum number of values in an array?

  • zero
  • one
  • two
  • three

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

  • arrays; objects
  • objects; functions
  • arrays; functions
  • key/value pairs; arrays

How does JSON represent truth, falsity and nullness?

  • true, false, null
  • true, false
  • TRUE, FALSE, NULL
  • true, false, null

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

  • Store the number as a string
  • Convert the number into an exponent.
  • Round the number to the nearest 10-digit number.
  • Split the number into smaller parts.

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

variance: -0.0823

  • variance: “-0.0823”
  • variance: -0.0823
  • “variance”: “-0.0823”
  • “variance”: “-0.0823”

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’,
},
},
};

  • A
    myVehicleContents.van.inside[‘glove box’] = gloveBoxContents;

  • B✔️
    var gloveBoxContents = myVehicleContents.van.inside[‘glove box’];
    gloveBoxContents;


  • C
    var gloveBoxContents = myVehicleContents.van.glove box.contents;
    gloveBoxContents;

  • D
    myVehicleContents.van.inside[‘inside’] = gloveBoxContents;

What characters are used to define an object?

  • ||
  • {}
  • ()
  • []

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.

What is supported by YAML but not supported by JSON?

  • arrays
  • null values
  • comments
  • nested

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

  • “’|=()(X 72()|/||*’”
  • “\s()(X 72()|/||*”
  • “|=()(X” “72()|/||*”
  • “|=()(X 72()|/||*”

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

  • Remove spaces from the key before accessing the value.
  • Use dot notation to access the value.
  • Use object key index to access the value.
  • Use bracket notation to access the value.

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

  • remove duplicate data from a server
  • temporarily store data for faster access
  • store excess information in chunks to be reviewed later
  • clog up a web browser with useless information

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

  • line break
  • space
  • tab
  • return

All Linkedin Skill Assessment Answers


List of Technical Skill Assessment


List of Business Skill Assessment


List of Design Skill Assessment


Leave a Reply