easy
Single Answer
0How can you identify that a file is a YAML file?
Answer Options
A
The file begins with three dashes.
B
The file begins with a hashbang preprocessor.
C
The contents are contained between curly brackets.
D
The contents are contained between square brackets.
Correct Answer: A
Explanation
A YAML file will always begin with three dashes. This is how you know you are working with a YAML file structure. Files that start with a hashbang preprocessor are normally scripts, and the hashbang describes to the operating system which command interpreter to use. A file that has its content contained between curly braces or square braces is normally a JSON file.
yaml
data-formats
file-identification