The following YAML Programming MCQs have been compiled by our experts through research, in order to test your knowledge of the subject of YAML Programming. We encourage you to answer these 30 multiple-choice questions to assess your proficiency.
Please continue by scrolling down.
A. ---
myObject: !myClass{name :joe,age:15}
B. ---
myObject: !!myClass{name :joe,age:15}
C. ---
myObject: *myClass{name :joe,age:15}
D. ---
myObject: !- myClass{name :joe,age:15}
A. Composition
B. Serialization
C. Presentation
D. Nodes
A. Presentation
B. Serialization
C. Representation
D. Application
A. "tag:yaml.org,2002:int"
B. "globaltag:yaml.org,2002.int"
C. "tag.yaml:org,2002:int"
D. tag:yaml.org,2002:int
A. It works on behalf of another module called application.
B. It processes a syntax for presenting a YAML representation as a series of characters.
C. It represents the tool for converting information between a YAML stream and a representation.
D. It represents the tool for describing a class of data objects.
A. !<!> foo
B. !<!bar>baz
C. !<tag:yaml.org,2002:str> foo:
D. !<$:?>bar
A. It marks a node for future reference.
B. It needs to be referenced by some alias node.
C. It identifies the type of native data structure presented by the node.
D. An anchor is denoted as ! indicator.
A. It is used primarily for data storage.
B. It is a non human-readable data serialization format.
C. It is a superset of JSON.
D. It is more verbose than XML.
A. Stream may be ill-formed.
B. Aliases may be unidentified.
C. Native may be available.
D. Node styles may be unavailable.
A. Mapping
B. Sequence
C. Scalar
D. None of the above
A. Complied successfully
B. Syntax error at line 5
C. The case of a YAML directive should be small.
D. Syntax error at line 6
A. men: [John Smith, Bill Jones]
women:
- Mary, Smith,John
- Susan W
B. men: [John Smith, Bill Jones]
-[ Mary Smith]
- Susan Williams
C. men: {John Smith, Bill Jones}
women:
- [women:Mary Smith]
- Susan
D. men: [John Smith, Bill Jones]
women:
- Mary Smith
- Susan Will
A. [ruby,{Python},Perl]
B. {ruby,{Python},Perl}
C. [ruby,Python,Perl]
D. {lang:ruby,Python,Perl}
A. !!
B. !
C. &
D. @
A. A representation tree
B. An ordered tree
C. An event tree
D. A representation graph
A. If they represent the same tag
B. If they represent the same content
C. If they represent the same native data structure
D. If they represent the same tag and content
A. A YAML serialization graph
B. A YAML serialization node
C. A YAML serialization tree
D. An unordered YAML serialization tree
A. They must be resolved to specific tags for a complete representation graph.
B. They must include local and global tags.
C. They are useful only for plain scalars.
D. They include non-specific tags such as ? and !.
A. - {name: John Smith, age: 33}
- name: Mary Smith
age: 27
B. - [name: John , age: 33]
- name: Mary Smith
age: 27
C. - name: John Smith, age: 33
- [name: Mary Smith]
age: 27
D. - {name: John Smith, age: 33}
- - name: Mary Smith
[ age: 27]
A. Parsing is the inverse of presentation.
B. Parsing deals with formatting a series of characters in a human-friendly manner.
C. Parsing discards all the details introduced in the presentation process.
D. Parsing is responsible for producing a representation graph.
A. Local tag
B. !
C. ?
D. Global tag
A. It is used to remove the leading and trailing white spaces.
B. It is used to preserve newlines as they appear.
C. It ignores the newlines, as their only purpose is to make the text readable.
D. None of the above
A. !string 123
B. !! char 123
C. !! str 123
D. @ str 123
A. --- !omp
- Mark McGwire: 65
- Sammy Sosa: 63
- Ken Griffy: 58
B. --- !!omap
- Mark McGwire: 65
- Sammy Sosa: 63
- Ken Griffy: 58
C. --- !!map
- [Mark McGwire: 65]
- [Sammy Sosa: 63]
- Ken Griffy: 58
D. --- !!otree
- [Mark McGwire: 65]
- [Sammy Sosa: 63]
- Ken Griffy: 58
A. #
B. /
C. ::
D. \
A. Representation
B. Presentation
C. Application
D. Serialization
A. [username:smith,uid:1138]
B. {username:smith,uid:11387}
C. !Username:john,uid-1234
D. - username:smith, uid:1138
A. #
B. !
C. @
D. :
A. !
B. @
C. ?
D. #
A. Representation
B. Serialization
C. Application
D. Presentation
A. Scalar
B. Serialization
C. Mapping
D. Sequence
E. Tags
A. global URIs
B. public
C. private
D. local
A. Comments
B. Indentation
C. The content of the key node directly along the path leading from the root to the resolved node
D. The node style
A. It denotes serialization details.
B. It denotes presentation details.
C. It denotes node styles.
D. It denotes relationships.
A. The non-specific tag of the node
B. The specific tag of the node
C. The content of the node
D. The path leading from the root node to the node
A. It starts and ends at some non-space character within a line.
B. It uses indicators to denote structure.
C. It always extends to the end of a line.
D. It uses indentation to denote structure.
A. It must be surrounded by the < and > characters.
B. It marks a node for future reference.
C. It requires the tag resolution method to be used.
D. It must either begin with a ! or be a valid URI.
A. !
B. Valid URI
C. !!
D. "TAG" directive