Zarejestruj się teraz

Zaloguj sie

Zgubione hasło

Zgubiłeś swoje hasło? Wprowadź swój adres e-mail. Otrzymasz link i utworzysz nowe hasło e-mailem.

Dodaj post

Musisz się zalogować, aby dodać post .

Dodaj pytanie

Aby zadać pytanie, musisz się zalogować.

Zaloguj sie

Zarejestruj się teraz

Witamy na stronie Scholarsark.com! Twoja rejestracja zapewni Ci dostęp do większej liczby funkcji tej platformy. Możesz zadawać pytania, wnosić wkład lub udzielać odpowiedzi, przeglądaj profile innych użytkowników i wiele więcej. Zarejestruj się teraz!

LinkedIn skill assessment answers and questions — JSON

In the ever-evolving world of technology, staying updated with the latest skills is crucial. Our comprehensive guide on LinkedIn Skill Assessment Questions oraz Odpowiedzi, specifically focused on JSON, aims to help you ace your next skill test. Whether you’re a seasoned professional or a beginner in the field, this resource is designed to boost your knowledge and confidence.

Dive into our meticulously curated questions and answers, and empower yourself to stand out in the competitive professional landscape. Pamiętać, every question is a stepping stone towards your success. Let’s embark on this journey of learning together!

  • schema
  • $schema
  • JsonSchema
  • JSONschema

Odniesienie

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

[
    'red',
    'blue',
    'green'
]
  • A
["red", "green", "blue"]
  • b
["red", "blue", "green"]
  • C
{
  "color": "red",
  "color": "blue",
  "color": "green"
}
  • D
{
  "red": "red",
  "blue": "blue"
}

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

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

Odniesienie

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

  • strunowy
  • numer
  • Data
  • array

Odniesienie

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

  • unpacking
  • serializacja
  • deserialization
  • parsing

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

accountNum: '000605802'

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

Odniesienie

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?

  • /
  • \
  • :
  • {

Odniesienie

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

  • Boolean
  • mapa
  • promise
  • funkcjonować

Odniesienie

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

  • Zainstaluj i skonfiguruj bramę Enterprise
  • ln można zapisać jako = 1/x, podczas gdy log można zapisać jako = x lub = xlog
  • rdzeń
  • wymagany

Pytanie 10. 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": true,
    "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"]
  }
}

Odniesienie

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

  • Escape all whitespaces except space characters.
  • Escape line breaks.
  • Escape paragraphs.
  • Remove all whitespaces

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

loggedIn: true

  • strunowy
  • Boolean
  • numer
  • obiekt

Odniesienie

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

  • loggedIn”: (PRAWDA)
  • loggedIn: “PRAWDA”
  • loggedIn”: PRAWDA
  • loggedIn: {PRAWDA}

Odniesienie

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

  • jakiś <origin> element
  • a header request
  • ten <script> element
  • the XMLHttpRequest object

Pytanie 15. Which value is supported in the JSON specifications?

  • undefined
  • infinity
  • NaN
  • zero

Odniesienie

Pytanie 16. Which JavaScript method converts JSON to a JavaScript value?

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

Odniesienie

Pytanie 17. 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

Pytanie 18. Which code uses valid JSON syntax for the textCentennial Olympics?

  • A
{
"host": "Atlanta",
"year": 1996
/_ Centennial Olympics _/
}
  • b
{
  "host": "Atlanta",
  "year": 1996
  // Centennial Olympics
}
  • C
{
  "host": "Atlanta",
  "year": 1996,
  "comment": "Centennial Olympics"
}
  • D
{
  "host": "Atlanta",
  "year": 1996,
  \"Centennial Olympics\"
}
  • mi
{
  "host": "Atlanta",
  "year": 1996,
  "comment": "\"Centennial Olympics"
}

Odniesienie

Pytanie 19. Can trailing commas be used in objects and arrays?

  • tak
  • only if there is more than one item
  • nie
  • only when arrays and objects contain more than 10 SAP Aktywuj Project Manager-C_ACTIVATE05 Test praktyczny

Odniesienie

Q20. 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

Odniesienie

Pytanie 21. Which is supported by YAML but not supported by JSON?

  • nested
  • Konstruuj i analizuj segmenty kodu, które wykonują iterację
  • tablice
  • null values

Odniesienie

Pytanie 22. Which is an invalid JSON value?

  • "'|=(_)(X 72(_)|\/||\*'"
  • "|=(_)(X 72(_)|\/||\*"
  • "|=(_)(X\" \"72(_)|\/||\*"
  • "\s(_)(X 72(_)|\/||\*"

Pytanie 23. 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 “Data” key to your object and include the date as string.

Odniesienie

Pytanie 24. 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.

Odniesienie

Pytanie 25. What does this JavaScript code print?

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

function printNullness(testMe) {
  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

Pytanie 26. What tool might you use to validate your JSON?

  • JSONLint
  • ValidateJSON
  • JSONFiddle
  • TextEdit

Odniesienie

Pytanie 27. What characters denote strings in JSON?

  • double quotes
  • mądry (curly) quotes
  • single or double quotes
  • single quotes

Odniesienie

Pytanie 28. 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"

Odniesienie Wyjaśnienie: Scientific Notation is a valid JSON number. You can use e lub E.

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

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

Q30. 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.

Odniesienie

Pytanie 31. 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"
  ]}
}

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

  • XML-a
  • GRAPHQL
  • Ale implementacja nawet najprostszych usług internetowych REST dla modelu domeny może być dość żmudna i za każdym razem skutkować dużą ilością standardowego kodu
  • SOAP

Pytanie 33. How is a true boolean value represented in JSON?

  • PRAWDA
  • “PRAWDA”
  • 1
  • PRAWDA

Odniesienie

Pytanie 34. Which array is valid JSON?

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

Odniesienie

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

[
  {
    "year": 2024
  },
  {
    "location": "unknown"
  }
]
  • obiekt
  • array
  • numer
  • strunowy

Odniesienie

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

  • trailing commas
  • trailing decimals
  • whitespace
  • leading zeroes

Odniesienie

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

  • FAŁSZ
  • 0
  • “”
  • zero

Odniesienie

Pytanie 38. 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.

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

  • lastVisit”: zero
  • lastVisit: zero
  • lastVisit”: 0
  • lastVisit”: undefined

Odniesienie

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

  • 128514
  • d83dde02
  • \uD83D\uDE02
  • &#128514;

Pytanie 41. 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

Odniesienie

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

  • dane
  • schemadata
  • schematype
  • rodzaj

Odniesienie

Pytanie 43. 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’

Odniesienie

Pytanie 44. Which data format is a JSON schema written in?

  • markdown
  • YAML
  • XML-a
  • JSON

Pytanie 45. 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

Odniesienie

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

  • colon
  • przestrzeń
  • semicolon
  • comma

Odniesienie

Pytanie 47. What character separates keys from values?

  • :
  • ->
  • ::
  • .

Odniesienie

Pytanie 48. If a string contains line breaks, co powinieneś zrobić?

  • 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

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

  • Fractional and Transcendental
  • Infinity or Rational
  • Rational and Irrational
  • Infinity or NaN

Q50. 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

Odniesienie

Pytanie51. Is the JSON code shown here valid?

JSON object with key "Vehicles" containing an array of emojis

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

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

  • lista
  • array
  • struct
  • indexed hash

Odniesienie

Pytanie53. What are valid values in JSON?

  • tablice, strings, liczby, true/false
  • hashes, tablice, strings, liczby, booleans, zero
  • tablice, Programowanie w Microsoft C#, lists, strings, liczby, booleans
  • Programowanie w Microsoft C#, tablice, strings, liczby, booleans, zero

Pytanie54. Which key format is valid JSON?

  • klucz: “wartość”
  • “klucz”: “wartość”
  • klucz, “wartość”
  • ‘key’: ‘value

Odniesienie

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

{
  "result": [
    {
      "year": 2024
    },
    {
      "location": "unknown"
    }
  ]
}
  • numer
  • array
  • strunowy
  • obiekt

Pytanie56. What’s wrong with this JSON object?

{
  "series": "Star Trek",
  "episodes": "The Trouble with Tribbles",
  "season": 3
}
  • 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.

Pytanie57. 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.

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

"name": 'bb-8'

  • Nazwa: “bb-8
  • “Nazwa”: ‘bb-8
  • “Nazwa”: “bb-8
  • “Nazwa”: bb-8

Pytanie59. How are values separated in JSON?

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

Q60. With which programming language is JSON best used?

  • any language, as JSON is language agnostic.
  • Rubin
  • Nie jest to łatwy wybór do nauki programowania
  • Pyton

Q61. What values can arrays contain?

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

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

  • reserialization
  • nesting
  • memorization
  • minimization

Q63. What characters are used to enclose an array?

  • []
  • {}
  • ""
  • ()

Q64. What is the official MIME type for JSON?

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

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

  • /
  • :

Q66. 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

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

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

Q68. With what character should object keys be enclosed?

  • *
  • #
  • ^
  • "

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

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

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

  • a swarm
  • multiple resources
  • kolekcja
  • a group

Q71. Does JSON support signed numbers?

  • tak, but only if they are enclosed in quotes
  • only with integers
  • tak
  • nie

Q72. What two nonnumerical characters can numbers contain?

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

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

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

Q74. How are the values in an array separated?

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

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

  • zero
  • jeden
  • dwa
  • trzy

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

  • tablice; Programowanie w Microsoft C#
  • Programowanie w Microsoft C#; Funkcje
  • tablice; Funkcje
  • key/value pairs; tablice

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

  • PRAWDA, fałszywy, zero
  • PRAWDA, fałszywy
  • PRAWDA, FAŁSZ, NULL

Q78. 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.

Q79. When parsing JSON, “cachingis 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

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

  • line break
  • przestrzeń
  • patka
  • Konstruuj i analizuj segmenty kodu, które wykonują iterację

Q81. 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.

Q82. 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”

Odniesienie

P83. 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;

Źródło

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?

  • tablice
  • null values
  • Konstruuj i analizuj segmenty kodu, które wykonują iterację
  • nested

YAML supports # comments but not JSON

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

  • "'|=(_)(X 72(_)|\/||*'"
  • "\s(_)(X 72(_)|\/||*"
  • "|=(_)(X\" \"72(_)|\/||*"
  • "|=(_)(X 72(_)|\/||*"

P88. 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"}

P89. 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, Webb olśnił tłum swoimi szybującymi wsadami i pokonał kolegę z drużyny Dominique Wilkins “studenci”.
  • Convert each student into an array and add extra elements to the array.
  • Wrap the existing “studenci” key with curly braces.

Q91. Który jest nie a valid JSON number

  • 99999999999999999999
  • "42"
  • -32
  • 1111.00.110011

Q92. What is the maximum string length in JSON?

  • 512 postacie
  • There is no defined limit.
  • 2,056 postacie
  • 1,024 postacie

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 ?

{
  "name": "Jane",
  "job": "developer",
  "skills": ["ruby", "rails", "javascript"],
  "available": false
}
  • A
{
  "name": "Jane",
  "job": "developer",
  "skills": ["ruby", "rails", "javascript"],
  "available": true,
  "seeking": "part-time"
}
  • b
{
  "name": "Jane",
  "job": "developer",
  "skills": ["ruby", "rails", "javascript"],
  "available": "true",
  "seeking": "part-time"
}
  • C
{
  "name": "Jane",
  "job": "developer",
  "skills": ["ruby", "rails", "javascript"],
  "available": false,
  "seeking": "part-time"
}
  • D
{
  "name": "Jane",
  "job": "developer",
  "skills": ["ruby", "rails", "javascript"],
  "available": "true",
  "seeking": "part-time"
}

Wskazówka: 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
  • FAŁSZ
  • zero

Wyjaśnienie: 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

Wyjaśnienie: 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. Co powinieneś zrobić??

  • 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.

Wyjaśnienie: 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?

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

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

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

  • {"photo": {"width": 1600, "height": 900, "binaries": {"url": "https://www.example.com/images/34097349843", "thumbnail": "https://www.example.com/images/thumbs/34097349843"}, "animated": true, "tags": [116, 943, 234, 38793]}}

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

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

  • FAŁSZ
  • 0
  • “”
  • zero

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

  • jakiś <origin> element
  • a header request
  • ten <script> element
  • the XMLHttpRequest object

Q101. 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

Q102. 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.

Pytanie 103. 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" ]}

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

  • {'avengers': {'iron man', 'hulk', 'thor', 'black widow', 'ant man', 'spider man'}]}

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

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

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

  • 128514
  • d83dde02
  • \uD83D\uDE02
  • &#128514;

Pytanie 105. 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.

Wyjaśnienie:- 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.

Wyjaśnienie:- When you have a key in a JSON document that contains special characters, spacje, 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.

Pytanie 108. 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 textCentennial Olympics?

  • A
{
"host": "Atlanta",
"year": 1996
/_ Centennial Olympics _/
}
  • b
{
  "host": "Atlanta",
  "year": 1996
  // Centennial Olympics
}
  • C
{
  "host": "Atlanta",
  "year": 1996,
  "comment": "Centennial Olympics"
}
  • D
{
  "host": "Atlanta",
  "year": 1996,
  \"Centennial Olympics\"
}
  • mi
{
  "host": "Atlanta",
  "year": 1996,
  "comment": "\"Centennial Olympics"
}

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

[
  {
    "year": 2024
  },
  {
    "location": "unknown"
  }
]
  • obiekt
  • array
  • numer
  • strunowy

Q111. Which is an invalid JSON value?

  • "'|=(_)(X 72(_)|\/||\*'"
  • "|=(_)(X 72(_)|\/||\*"
  • "|=(_)(X\" \"72(_)|\/||\*"
  • "\s(_)(X 72(_)|\/||\*"

Pytanie 112. What are the valid number types in JSON?

  • Whole Numbers and Decimals
  • Real Numbers and Fractions
  • Liczba całkowita, Floating Points, and Exponents (Scientific Notation, np., 3e4)
  • Prime Numbers and Complex Numbers

Pytanie 114. What is the purpose of JSON Web Tokens (JWT)?

  • To validate JSON data
  • To store sensitive information
  • To represent information between parties
  • To create JSON schemas

Pytanie 115. What is JSON-RPC used for?

  • Remote procedure calls encoded in JSON
  • Rendering graphics in web applications
  • JavaScript execution control
  • Data validation in JSON

Pytanie 116. Which of the following is a key difference between JSON and XML?

  • JSON uses tags
  • XML is more lightweight
  • JSON is easier for humans to read
  • XML is used for programming, while JSON is for data exchange

Pytanie 117. Which HTTP header is commonly used to prevent cross-site scripting (XSS) attacks when working with JSON?

  • Content-Encoding
  • Access-Control-Allow-Origin
  • JSON-Security
  • XSS-Prevention

Pytanie 118. What does the JSON Merge Patch format allow you to do?

  • Combine multiple JSON documents into one
  • Partially update a JSON document
  • Compress JSON data for storage
  • Convert JSON to XML

Pytanie 119. Which method is used to parse a JSON string and return a JavaScript object in modern web browsers?

  • parseJSON()
  • JSON.parse()
  • evalJSON()
  • loadJSON()

Q120. What is the primary purpose of JSON-LD (JSON Linked Data)?

  • To enable two-way data binding in JavaScript
  • To represent data in a more human-readable format
  • To express structured data that is linked to other data
  • To create dynamic web pages with JSON

Autor

  • Helena Bassy

    utrudnisz uczenie się, a nie zapamiętywanie, I'm Helena, autor bloga, którego pasją jest publikowanie wnikliwych treści w niszy edukacyjnej. Wierzę, że edukacja jest kluczem do rozwoju osobistego i społecznego, i chcę dzielić się moją wiedzą i doświadczeniem z uczniami w każdym wieku i na każdym poziomie. Na moim blogu, znajdziesz artykuły na takie tematy, jak strategie uczenia się, Edukacja online, doradztwo zawodowe, i więcej. Chętnie przyjmę także uwagi i sugestie od moich czytelników, więc nie wahaj się zostawić komentarza lub skontaktować się ze mną w dowolnym momencie. Mam nadzieję, że czytanie mojego bloga sprawi Ci przyjemność i uznasz go za przydatny i inspirujący.

    Zobacz wszystkie posty

O Helena Bassy

utrudnisz uczenie się, a nie zapamiętywanie, I'm Helena, autor bloga, którego pasją jest publikowanie wnikliwych treści w niszy edukacyjnej. Wierzę, że edukacja jest kluczem do rozwoju osobistego i społecznego, i chcę dzielić się moją wiedzą i doświadczeniem z uczniami w każdym wieku i na każdym poziomie. Na moim blogu, znajdziesz artykuły na takie tematy, jak strategie uczenia się, Edukacja online, doradztwo zawodowe, i więcej. Chętnie przyjmę także uwagi i sugestie od moich czytelników, więc nie wahaj się zostawić komentarza lub skontaktować się ze mną w dowolnym momencie. Mam nadzieję, że czytanie mojego bloga sprawi Ci przyjemność i uznasz go za przydatny i inspirujący.

Zostaw odpowiedź