Which markup language is primarily used for data transfers and uses custom tags?
Correct Answer: B. Extensible Markup Language (XML)
Extensible Markup Language (XML) is a structured markup language designed for data transfer and storage. It allows users to create custom tags, making it highly flexible for different applications. XML is widely used in web services, APIs, and configuration files to store and transmit structured data.
For example, an XML data structure might look like this:
xml
<Person>
<FirstName>John</FirstName>
<LastName>Doe</LastName>
<Age>30</Age>
</Person>
This ability to define custom tags makes XML a popular choice for data exchange between different systems.
Why the other options are incorrect:
JavaScript Object Notation (JSON) – Incorrect.
JSON is another data format commonly used in APIs and web applications, but it does not use custom tags. Instead, JSON structures data using key-value pairs, like this:
json
{
"FirstName": "John",
"LastName": "Doe",
"Age": 30
}
While JSON is widely used for data transfer, the question specifically asks about custom tags, which XML supports but JSON does not.
Hypertext Markup Language (HTML) – Incorrect.
<h1>, <p>, <div>, etc.), and does not allow users to create custom tags for data storage.Standard Generalized Markup Language (SGML) – Incorrect.
No Payment Cards Needed
Discover a range of courses designed to provide you with the knowledge and skills needed to excel in your chosen field.
You don’t need one month to study and pass your test.
With Prepsaret, it takes you a few days to grasp all the concepts needed to pass your exams