nerdexam
Cisco

200-901 · Question #30

Which two statements about JSON and XML are true? (Choose two.)

The correct answer is A. JSON objects are collections of key-value pairs. D. The syntax of XML contains tags, elements, and attributes. A is true: JSON objects are defined as unordered collections of key-value pairs, enclosed in curly braces {}. D is true: XML syntax is built around tags (opening/closing markers like <tag>), elements (the content between tags), and attributes (name='value' pairs within a tag)…

Understanding and Using APIs

Question

Which two statements about JSON and XML are true? (Choose two.)

Options

  • AJSON objects are collections of key-value pairs.
  • BThe syntax of JSON contains tags, elements, and attributes.
  • CJSON arrays are an unordered set of key value pairs.
  • DThe syntax of XML contains tags, elements, and attributes.
  • EXML objects are collections of key-value pairs.

How the community answered

(32 responses)
  • A
    91% (29)
  • B
    6% (2)
  • C
    3% (1)

Explanation

A is true: JSON objects are defined as unordered collections of key-value pairs, enclosed in curly braces {}. D is true: XML syntax is built around tags (opening/closing markers like <tag>), elements (the content between tags), and attributes (name='value' pairs within a tag). B is false - tags, elements, and attributes describe XML, not JSON. C is false - JSON arrays are ordered sequences of values (not unordered, and not key-value pairs). E is false - XML does not use 'objects' in the JSON sense.

Topics

#JSON#XML#Data Formats#API Data

Community Discussion

No community discussion yet for this question.

Full 200-901 Practice