YAML Flashcards

1
Q

How does YAML represent data?

A

as key-value paris

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are three dashes — at the top of a YAML document?

A

indicate start of the document

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The set of key-value pair is commonly referred to as what? (3)

A
  1. Dictionary
  2. Hash
  3. Map
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Do keys in the dictionary must be unique?

A

yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What type of data can be values? (4)

A
  1. string
  2. intiger
  3. list of objects
  4. another dictionary
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

In YAML, how is each item in a list signified?

A

by two spaces, a dash, another space and the item in the list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does it mean that YAML is an indentation based language?

A

indentation (whitespace) is used to delimit blocks of code, instead of using braces or keywords - the structure of the code is determined by the indentation levels

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Why is correct indentation crucial?

A

improper indentation can cause errors or change the logic of the code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly