exam questions

Exam 350-401 All Questions

View all questions & answers for the 350-401 exam

Exam 350-401 topic 1 question 310 discussion

Actual exam question from Cisco's 350-401
Question #: 310
Topic #: 1
[All 350-401 Questions]


Refer to the exhibit. Which JSON syntax is derived from this data?

  • A. {[{'First Name': 'Johnny', 'Last Name': 'Table', 'Hobbies': ['Running', 'Video games']}, {'First Name': 'Billy', 'Last Name': 'Smith', 'Hobbies': ['Napping', 'Reading']}]}
  • B. {'Person': [{'First Name': 'Johnny', 'Last Name': 'Table', 'Hobbies': 'Running', 'Video games'}, {'First Name': 'Billy', 'Last Name': 'Smith', 'Hobbies': 'Napping', 'Reading'}]}
  • C. {[{'First Name': 'Johnny', 'Last Name': 'Table', 'Hobbies': 'Running', 'Hobbies': 'Video games'}, {'First Name': 'Billy', 'Last Name': 'Smith', 'Hobbies': 'Napping', 'Reading'}]}
  • D. {'Person': [{'First Name': 'Johnny', 'Last Name': 'Table', 'Hobbies': ['Running', 'Video games']}, {'First Name': 'Billy', 'Last Name': 'Smith', 'Hobbies': ['Napping', 'Reading']}]}
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
Broekie
Highly Voted 3 years, 6 months ago
Answer D I verified the code on the site https://jsonlint.com Before testing please put every string between quotation mark. for example: "Person" : so on
upvoted 10 times
...
Hamzaaa
Highly Voted 3 years, 8 months ago
please verify, D is the correct answer, the root is person, then hobbies must open a sub vector
upvoted 8 times
...
[Removed]
Most Recent 7 months ago
Selected Answer: D
D is correct A and C are wrong cause "Person" should also be mentioned B is wrong cause "Hobbies" should be followed with [
upvoted 1 times
[Removed]
7 months ago
i didn't mention all the syntax issues with the other options, just focused on the main issues
upvoted 1 times
...
...
rami_mma
1 year, 8 months ago
Selected Answer: A
I think they add one extra bracket at the beginning and another bracket at the end, if they remove them the answer should would be A.
upvoted 1 times
...
echipbk
1 year, 11 months ago
Selected Answer: D
D is the correct answer
upvoted 2 times
...
nushadu
2 years ago
Selected Answer: D
Generally speaking, yes, "D" is a working python dictionary but why Cisco wants students study programming? # python3 data = {'Person': [{'First Name': 'Johnny', 'Last Name': 'Table', 'Hobbies': ['Running', 'Video games']}, {'First Name': 'Billy', 'Last Name': 'Smith', 'Hobbies': ['Napping', 'Reading']}]} for key, value in data.items(): for n, i in enumerate(value, 1): print(f'{key}#{n}') for x, y in i.items(): print(f'{x} is {y}') print()
upvoted 4 times
nushadu
2 years ago
# output Person#1 First Name is Johnny Last Name is Table Hobbies is ['Running', 'Video games'] Person#2 First Name is Billy Last Name is Smith Hobbies is ['Napping', 'Reading']
upvoted 1 times
...
...
KZM
2 years ago
D is correct We can also check JSON code in https://jsonformatter.curiousconcept.com/#
upvoted 3 times
...
Violator
2 years, 9 months ago
This question is still asked. Passed today.
upvoted 3 times
...
xziomal9
3 years, 3 months ago
The correct answer is: D. { ‘Person’: [ { ‘First Name’: ‘Johnny’, ‘Last Name’: ‘Table’, ‘Hobbies’: [‘Running’, ‘Video games’] }, { ‘First Name’: ‘Billy’, ‘Last Name’: ‘Smith’, ‘Hobbies’: [‘Napping’, ‘Reading’] } ] }
upvoted 4 times
xziomal9
3 years, 1 month ago
{"Person":[{"First Name":"Johnny","Last Name":"Table","Hobbies":["Running","Video games"]},{"First Name":"Billy","Last Name":"Smith","Hobbies":["Napping","Reading"]}]}
upvoted 2 times
...
...
error_909
3 years, 3 months ago
Correct Answer: { "Persion": [{ "Firstname": "Johnny", "Lastname": "Table", "Hobbies": ["Running", "Video Games"] }, { "Firstname": "Billy", "Lastname": "Smith", "Hobbies": ["Napping", "Reading"] } ] }
upvoted 2 times
...
Masashi_O
3 years, 6 months ago
A. {[{First Name: Johnny, Last Name: Table, Hobbies: [Running, Video games]}, {First Name: Billy, Last Name: Smith, Hobbies: [Napping, Reading]}]} B. {Person: [{First Name: Johnny, Last Name: Table, Hobbies: Running, Video games}, {First Name: Billy, Last Name: Smith, Hobbies: Napping, Reading}]} C. {[{First Name: Johnny, Last Name: Table, Hobbies: Running, Hobbies: Video games}, {First Name: Billy, Last Name: Smith, Hobbies: Napping, Reading}]} D. {Person: [{First Name: Johnny, Last Name: Table, Hobbies: [Running, Video games]}, {First Name: Billy, Last Name: Smith, Hobbies: [Napping, Reading]}]}
upvoted 4 times
ABC123
3 years, 5 months ago
When we paste each of those 4 scripts in https://jsonlint.com they all have scripting errors! :-)
upvoted 1 times
Jared28
2 years, 6 months ago
Replace the single quotes with double quotes.
upvoted 2 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 ...