Which two statements about JSON and XML are true? (Choose two.)
A.
JSON objects are collection of key value pair.
B.
The syntax of JSON contains tags, elements, and attributes.
C.
JSON arrays are an unordered set of key value pairs.
D.
The syntax of XML contains tags, elements, and attributes.
E.
XML objects are collections of key-value pairs.
The Answer Is:
A, D
This question includes an explanation.
Explanation:
JSON objects are indeed collections of key-value pairs, where each key is a string, and the value can be a string, number, boolean, array, or another object. JSON is often used for data interchange due to its lightweight and readable format. Reference: JSON Introduction.
The syntax of XML includes tags, elements, and attributes. XML uses a hierarchical structure with opening and closing tags to define elements, and attributes provide additional information about elements. XML is widely used for data representation and transport. Reference: XML Basics.
JSON arrays, in contrast, are ordered collections of values (not key-value pairs), and XML objects are more complex structures with elements and attributes rather than simple key-value pairs.
200-901 PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 65% Discount on All Products,
Use Coupon: "ac4s65"