exam questions

Exam 350-401 All Questions

View all questions & answers for the 350-401 exam

Exam 350-401 topic 1 question 783 discussion

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

Which statement must be used to export the contents of the devices object in JSON format?

  • A. json.repr(Devices)
  • B. json.loads(Devices)
  • C. json.print(Devices)
  • D. json.dumps(Devices)
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
Asombrosso
Highly Voted 1 year, 3 months ago
Selected Answer: D
json.loads(jsonString) — json string to python object json.dumps(pythonObject) — python object to json string json.load(fileHandler) — json file to python object — python object from file json.dump(jsonString or pythonObject, fileHandler) — json string or python object to json file
upvoted 10 times
...
[Removed]
Most Recent 6 months, 2 weeks ago
Selected Answer: D
D is correct
upvoted 1 times
...
kivi_bg
10 months, 2 weeks ago
Selected Answer: D
Devices is a Python object (list of dictionaries in this case).
upvoted 2 times
...
due
1 year, 3 months ago
Selected Answer: D
json.loads(Devices): Restore a JSON string (like Devices) to Python objects. json.dumps(Devices): Convert Python objects (like Devices) to a JSON-formatted. json.repr and json.print not a valid Python JSON-related function. Keyword , export JSON format = json.dumps.
upvoted 2 times
...
ihateciscoreally
1 year, 3 months ago
Selected Answer: B
in my opinion it should be B. you have JSON string format and you want to export it. json.loads() is only viable option.
upvoted 2 times
CCNPWILL
1 year, 2 months ago
you hate cisco so you are trying to sabotage everyone else? The answer is D. a simple google search would have told you.
upvoted 6 times
...
...
alex711
1 year, 4 months ago
Selected Answer: D
D is Ok.
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 ...