IPA IP 2022 Question 88
A question IPA Japan published in 令和4年度 ITパスポート試験 公開問題 問88, translated into English. ITPEC is based on the same exams.
Which of the following is the appropriate combination of words to be inserted into blanks A and B in the following description concerning data formats that are used when information collected by an IoT device is sent to an IoT server?
The A format is a data format that indicates the separation of data with delimiter characters such as commas, and the B format is a markup language and is a data format in which the logical structure of data can be described by using tags.
Explanation
A: CSV, B: XML — CSV separates values with commas, XML marks up structure with tags.
CSV (Comma-Separated Values) is a plain-text format in which each record is a line and its fields are separated by a delimiter such as a comma. XML (Extensible Markup Language) is a markup language: data is enclosed in user-defined tags such as <temp>21., and nesting the tags describes the data’s logical structure. Both are widely used to send sensor readings from IoT devices to servers.
Answer (b)
Why not others:
- •(a) and (c) — JSON describes structure with braces, brackets and key-value pairs, not tags, and it is not a markup language
- •(c) and (d) — RSS is an XML-based format for distributing summaries of website updates, not a comma-delimited format
Key rule: Delimiters (commas) mean CSV; tags in a markup language mean XML; key-value pairs in braces mean JSON.
Algorithm and Programming · AI-written, may contain errors
This question comes from the past questions IPA Japan publishes, translated into English by ITPEC Practice. ITPEC Practice is an independent study tool and is not affiliated with IPA or ITPEC. See the original paper (PDF) or Report an issue.