medium
Single Answer
0Which element of YAML defines a key-value pair?
Answer Options
A
Definition
B
Mapping
C
Lists
D
Keys
Correct Answer: B
Explanation
The YAML Ain't Markup Language (YAML) markup language uses mapping to define keys and values as pairs. Definition is not a term used with YAML; therefore, option A is an invalid answer. Lists are keys with multiple values in the form of a list. Keys are categories that contain a value in the key-value pair.
yaml
data-formats
syntax