Recognizing Programming Languages Flashcards

1
Q

YAML file

A
  • Begins with a series of three dashes (—) and ends with a series of three periods (…)
  • Holds key/value pairs but no quotation marks
  • Contains Lists and Dictionaries

— # Favorite movies List using block format
Movies:
- Casablanca
- North by Northwest
- The Man Who Wasn’t There

— # Favorite movies List in in-line format
[Casablanca, North by Northwest, The Man Who Wasn’t There]

# Example of a YAML Dictionary

Employee1:
Name: John Doe
Title: Developer
Nickname: Mr Debug

Employee1:
Name: John Doe
Title: Developer
Nickname: Mr Debug
Skills:
- Python
- YAML
- JSON

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

XML file

A
  • Begins with a tag, ends with same tag preceded by a /
  • Starts with < users > so must end with < /users >
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

JSON file

A
  • Look for JSON objects
  • JSON objects start with a curly bracket { and ends with a curly bracket }
  • Consists of key:value pairs, key in quotes followed by colon, followed by value in quotes
  • “user”: “George”
  • “friend”: “Matt”
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

YANG output

A

Look for keywords ‘Container’ and ‘Leaf’

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

NETCONF file

A
  • Look for key phrase < rpc-reply message-id =” at the beginning
  • Look for key phrase < /rpc-reply > at the end
  • XML format
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

RESTCONF

A
  • Can use either XML or JSON
  • Has the word RESTCONF in the output
  • Can perform the following:
    • GET
    • POST
    • PUT
    • DELETE
    • OPTIONS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Python script

A
  • JSON format
  • Strings start with 3 quotes “”” and end with 3 quotes “””
  • The word “import” indicates bringing in a dictionary or module
How well did you know this?
1
Not at all
2
3
4
5
Perfectly