Skip to content

Commit b8d4edd

Browse files
KL2400040448kinglokesh2203gmail.com
andauthored
Add Q281 & Q282 to JSON quiz (#6314) (#7247)
* Fix Q69 ambiguous box model question (#6923) * Fix MongoDB Q97 wrong answer and correct Q103 wording (#6899) * Add Q281 and Q282 to JSON quiz (#6314) --------- Co-authored-by: kinglokesh2203gmail.com <your_email@example.com>
1 parent 948483d commit b8d4edd

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

json/json-quiz.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2787,3 +2787,18 @@ For large JSON files, streaming parsers (like SAX-style parsers) are recommended
27872787
- [x] To specify that all items in an array must be unique
27882788
- [ ] To create unique identifiers
27892789
- [ ] To validate unique keys
2790+
2791+
#### Q281. What is the purpose of JSON-P (JSON with padding) in web development, and how is it typically used?
2792+
2793+
- [ ] A. To validate JSON data before parsing it in JavaScript.
2794+
- [ ] B. To provide additional padding for JSON objects to improve readability.
2795+
- [x] C. To overcome the same-origin policy limitation when making cross-domain AJAX requests.
2796+
- [ ] D. To compress JSON data for faster transmission over the network.
2797+
2798+
#### Q282. 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?
2799+
2800+
- [ ] A. Wrap the key in single quotes.
2801+
- [ ] B. Enclose the key in square brackets.
2802+
- [ ] C. Use backslashes before special characters.
2803+
- [x] D. Enclose the key in double quotes.
2804+

0 commit comments

Comments
 (0)