exam questions

Exam 200-901 All Questions

View all questions & answers for the 200-901 exam

Exam 200-901 topic 1 question 13 discussion

Actual exam question from Cisco's 200-901
Question #: 13
Topic #: 1
[All 200-901 Questions]

Refer to the exhibit.

Which JSON is equivalent to the XML-encoded data?
A.

B.

C.

D.

Show Suggested Answer Hide Answer
Suggested Answer: B
Reference:
https://www.guru99.com/json-vs-xml-difference.html

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Mohmad
Highly Voted 1 year, 6 months ago
It's B. I just run xml converter and the result was exactly as B { "books": { "science": { "biology": "10.00", "geology": "9.00" }, "math": { "calc": "20.00" } } }
upvoted 23 times
...
aprettyparrot
Highly Voted 1 year, 6 months ago
Its B, A is wrapped in a array. Also when you put that XML into a convertor you get: { "books": { "science": { "biology": "10.00", "geology": "9.00" }, "math": { "calculus": "20.00" } } }
upvoted 5 times
aprettyparrot
1 year, 6 months ago
and C is just wrong because it has books in an array
upvoted 1 times
...
...
macxsz
Most Recent 6 months, 1 week ago
B The others are incorrect
upvoted 1 times
...
bluesky2022
1 year, 1 month ago
Answer is B - dictionary (no list): Refer to the exhibit: <books> <science> <biology>10.00</biology> <geology>9.00</geology> </science> <math> <calculus>20.00</calculus> </math> </books> Which JSON is equivalent to the XML-encoded data? Answer: B { "books": { "science": { "biology": "10.00", "geology": "9.00" }, "math": { "calculus": "20.00" } }, "#omit-xml-declaration": "yes" }
upvoted 2 times
...
Ram0n_Aya1a
1 year, 2 months ago
B is the good one , you may want to verify with XML to JSON converter online
upvoted 2 times
...
eng11
1 year, 4 months ago
I am confused why not C.
upvoted 2 times
Akvilina
1 year, 3 months ago
Because in a list (identified by []) you have to have key:value pairs, and the value can not be dictionary, it has to be list. If it would be C, you would have to have [] after science and math
upvoted 4 times
...
...
mplshelp
1 year, 6 months ago
It's C.
upvoted 2 times
Iamrandom
1 year ago
Nope, try to declare in Python and you will see...
upvoted 1 times
...
...
Kusirhca
1 year, 7 months ago
No. B: { "books": { "science": { "biology": "10.00", "geology": "9.00" }, "math": { "calculus": "20.00" } } }
upvoted 2 times
...
airone
1 year, 7 months ago
should be B
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...