Prepare for the 241 Computer Science Certification Exam with comprehensive flashcards and multiple choice questions. Enhance knowledge with explanations and hints to excel in your test journey!

Multiple Choice

What defines a set of rules for encoding documents in a format that is both human-readable and machine-readable?

XML is a markup language that defines a set of rules for encoding documents in a format that can be read by humans and processed by machines. Its structure uses tags to mark up data and a hierarchical arrangement of elements, which makes the data self-descriptive and easy to parse. The extensible nature lets you introduce your own tags and vocabularies, and you can validate documents with schemas or DTDs to ensure correctness. HTML is geared mainly toward presentation, not general-purpose data encoding. CSV represents simple flat tabular data without hierarchical structure. JSON is also human- and machine-readable and excellent for data interchange, but XML’s emphasis on a formal grammar and extensibility makes it the best fit for encoding documents with a defined set of rules.

XML is a markup language that defines a set of rules for encoding documents in a format that can be read by humans and processed by machines. Its structure uses tags to mark up data and a hierarchical arrangement of elements, which makes the data self-descriptive and easy to parse. The extensible nature lets you introduce your own tags and vocabularies, and you can validate documents with schemas or DTDs to ensure correctness.

HTML is geared mainly toward presentation, not general-purpose data encoding. CSV represents simple flat tabular data without hierarchical structure. JSON is also human- and machine-readable and excellent for data interchange, but XML’s emphasis on a formal grammar and extensibility makes it the best fit for encoding documents with a defined set of rules.