Data Formats: XML and JSON Flashcards

1
Q

Extensible Markup Language

A

XML

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

A text-based format for representing structured information.

A

XML

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

XML was derived from an older standard format called _ _ _ _ (______________)

A

SGML (Standard Generalized Markup Language)

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

XML is used as a ____________.

A

Metalanguage

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

A language used to describe other languages.

A

Metalanguage

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

XML is the basis of many format standard today such as: (4)

A

UBL, HTML, SVG, MathML

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

The most recognizable features of XML is the _______. AKA the tags or elements.

A

markup

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

XML elements can contain: (3)

A

Text
Attributes
Other Elements

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
9
Q

In XML naming rules, Element/Tag names are _____________.

A

Case Sensitive

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

In XML naming rules, can element/tag names contain numbers?

A

Yes

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

In XML naming rules, can element/tag names contain hyphens?

A

Yes

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

In XML naming rules, can element/tag names contain underscores?

A

Yes

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

In XML naming rules, can element/tag names contain period?

A

Yes

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

In XML naming rules, can element/tag names only start with letter or hyphen?

A

No, only with letter or underscore

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

In XML naming rules, can element/tag names contain spaces?

16
Q

True or False: XML tags may or may not be closed.

A

False, they must be closed.

16
Q

True or False: Attributes must be quoted in XML tags.

17
Q

Question in PPT: Why do we need XML?

A
  • Lets you define and store data in a shareable manner (from AWS)
  • Allows for storing and sharing data in a structured format.
18
Q

An XML document that describes the structure of other XML-based languages.

A

XML Schema

19
Q

They contain constraints about the syntax and valid data types of the document they are describing.

A

XML Schema

20
Q

XML Schemas provide the following info about a language: (3)

A
  1. List of Valid Elements
  2. Valid types for the elements
  3. Structure/syntax of the language
21
Q

Documents that use known schemas can use _________________ like HTML’s DTD

A

single-line schema declarations
ex. <!doctype html>

22
Q

Programs that parse XML content: (2)

A

XML Validators
Code Editors

23
PL/script independent but it shares analogous concepts with most programming languages.
JSON
24
JSON data is built on 2 structures: (2)
Object Arrays
25
Are key-value pairs separated by _____ and delimited by ________
colons, commas
26
Are ordered list of values. The contents of an array doesn't have to be of a single type.
Arrays.
27
Sequence of one or more unicode characters, surrounded by double qoutes.
The process of converting data structures/ object states into formats that can be stored and later reconstructed.
28
An object to be serialized may be an _____/_____________ created by a running program
object/data structure in memory
29
Common format choices for transporting data over the web.
XML
30
The reverse process whereby data in a serial format is restored into memory (for a program to use).
Deserialization
31
True or False: Both JSON and XML are self-describing (human readable).
True
32
True or False: Both JSON is hierarchal while XML is unstratified.
False, both are hierarchal
33
True or False: JSON is a standard content type on the web while xml is an obsolete type.
False, both are standard.
34
True or False: XML is more verbose than JSON.
True
35
The only explicit data type of XML is _______.
String
36
True or False: XML has ambiguous interpretations while JSON has no ambiguity.
True
37
True or False: Many PLs support JSON in parsing and writing JSON while only a few supports XML.
False, many supports for both format.