exam questions

Exam 350-401 All Questions

View all questions & answers for the 350-401 exam

Exam 350-401 topic 1 question 952 discussion

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

DRAG DROP
-

Drag and drop the code snippets from the bottom onto the blanks in the script to convert a Python object into a JSON string. Not all options are used.

Show Suggested Answer Hide Answer
Suggested Answer:

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
[Removed]
10 months, 1 week ago
correct
upvoted 1 times
...
downturn66
11 months, 2 weeks ago
annoys me that the second blank answer is ".encode" when the "." is already in the code snippet. But that's just bad question formatting. The given answer is still correct.
upvoted 4 times
...
slacker_at_work
1 year, 1 month ago
The provided Python code defines a dictionary named data containing various pieces of information. Then, it uses the json.JSONEncoder().encode() method to convert this dictionary into a JSON string representation. Finally, it prints the resulting JSON string.
upvoted 2 times
...
incognitoborg
1 year, 2 months ago
Given answer is correct >>>json.JSONEncoder().encode({"foo": ["bar", "baz"]}) '{"foo": ["bar", "baz"]}' https://docs.python.org/3/library/json.html
upvoted 4 times
...
Mizuchan
1 year, 2 months ago
Seems correct
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago