Linked in quiz

LinkedIn Json quiz

LinkedIn Json quiz
# By convention, what name is used for the first key in a JSON schema? - [ ] schema - [x] \$schema - [ ] JsonSchema - [ ] JSONschema # Which code is the closest JSON equivalent of the data shown? ``` [ 'red', 'blue', 'green' ] ``` - [ ] ```json ["red", "blue", "green"] ``` - [ ] ```json ["red", "blue", "green"] ``` - [x] ```json { "color": "red", "color": "blue", "color": "green" } ``` - [ ] ```json { "red": "red", "blue": "blue" } ``` # Which JavaScript method converts a JavaScript value to Json? - [ ] JSON.parse() - [x] JSON.stringify() - [ ] JSON.toString() - [ ] JSON.objectify() # Which data type is NOT part of JSON standard? - [ ] string - [ ] number - [x] date - [ ] array # Which term is commonly used to refer to converting data to JSON? - [ ] unpacking - [x] serialization - [ ] deserialization - [ ] parsing # Which code uses the correct JSON syntax to encode the key/value pair shown? `accountNum: '000605802'` - [x] "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? - [ ] `/` - [x] `\` - [ ] `:` - [ ] `{` # Which date type is part of the JSON standard? - [x] Boolean - [ ] map - [ ] promise - [ ] function # Which key name is used to specify properties that must be included for JSON to be valid? - [ ] important - [ ] base - [ ] core - [x] 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], } } ``` - [ ] ```json { "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] } } ``` - [ ] ```json { "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] } } ``` - [x] ```json { "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] } } ``` - [ ] ```json { "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? - [x] 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 - [x] 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" - [x] "loggedIn": true - [ ] loggedIn: {true} # What does JSON with padding (JSON-P) use to make a request? - [ ] an `` element - [ ] a header request - [x] the `

About Us

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.

Know More

Category

Join Our Newsletter

Join our newsletter to stay in the loop for new contents.