Which statement about JSON vs XML is true?

XML is verbose and supports schemas and namespaces.

XML tends to be verbose because every piece of data is wrapped in opening and closing tags, which adds a lot of text. It also supports schemas (like XML Schema or DTD) to define the structure and data types, and namespaces to prevent element name collisions when combining vocabularies. JSON, by contrast, is designed for compact data interchange and represents data as nested objects and arrays, without built-in schemas or namespaces in the core specification (though external specifications like JSON Schema exist). That combination makes the statement about XML being verbose and supporting schemas and namespaces the accurate one. The other options misstate JSON’s verbosity and capabilities, or incorrectly claim XML is lighter than JSON, or that JSON cannot represent hierarchical data.

JSON is verbose and supports schemas and namespaces.

XML is lighter than JSON for data interchange.

JSON cannot represent hierarchical data.

Want more questions?

All options are one-time payments.

$25.99

30 day premium pass

All the basics to get you started

  • Ad-free experience
  • View your previous attempt history
  • Mobile app access
  • In-depth explanations
  • 30 day premium pass access
$59.99 $171.99 usd

6 month DELUXE pass (most popular)

Everything with the 30 day premium pass FOR 6 MONTHS! & the ultimate digital PDF study guide (BONUS)

  • Everything included in the premium pass
  • $171.99 usd value for $59.99! You save $106!
  • + Access to the ultimate digital PDF study guide
  • + 6 months of premium pass access
  • + Priority support
$15.99 $24.99

Ultimate digital PDF study guide

For those that prefer a more traditional form of learning

  • Available for instant download
  • Available offline
  • Hundreds of practice multiple choice questions
  • Comprehensive content
  • Detailed explanations
Image Description
Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy