14.2.9 Check Your Understanding – Data Formats Answers

1. Which of the following data formats is typically used to display web pages?

  • HTML
  • XML
  • JSON
  • YAML

Explanation: Although aspects of other data formats might be embedded in a web page, HTML is the data format used to display web pages.

2. Which of the following describes a key/value pair?

  • A key is a string and a value is a list
  • A key/value pair is another name for an array.
  • A key describes the data and the value is the data itself.
  • A key/value pair is only used in JSON.

Explanation: The key is usually on the left side and it identifies or describes the data. The value on the right is the data itself and can be a character, string, number, list or another type of data.

3. TRUE or FALSE: White space in JSON format is significant and must be correctly formatted.

  • True
  • False

Explanation: The correct answer is False: In the JSON data format, white space is not significant. However, for readability JSON is often displayed in an indented format.

4. This data format is a minimalist format that is very easy to read and is considered a superset of another data format.

  • HTML
  • XML
  • JSON
  • YAML

Explanation: YAML is very easy to read and is considered a superset of JSON.

5. This data format is self-descriptive through the use of the data structure.

  • HTML
  • XML
  • JSON
  • YAML

Explanation: XML is self-descriptive. It encloses data within a related set of tags.

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x