exam questions

Exam 200-901 All Questions

View all questions & answers for the 200-901 exam

Exam 200-901 topic 1 question 96 discussion

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

DRAG DROP -
Drag and drop the code snippets from the bottom to the blanks in the code to test the API response through the Python unittest library. Not all options are used.
Select and Place:

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
AJ7428
Highly Voted 2 years, 5 months ago
status_code 200 content_type none Should be correct order.
upvoted 19 times
herrmann69
9 months ago
content_type is no attribute of the requests Response object
upvoted 1 times
...
ToTheBone
2 years ago
It is valid answer?
upvoted 1 times
...
...
PrajwalEM
Highly Voted 2 years, 6 months ago
status_code 200 content none
upvoted 8 times
macxsz
2 years, 4 months ago
I think "content" alone does not exist
upvoted 1 times
cerifyme85
1 year, 9 months ago
content is the correct python request method for error checking and testing, content-type is the http response/request header
upvoted 2 times
...
Frap
1 year, 9 months ago
he just make it short
upvoted 1 times
...
...
...
kymoni
Most Recent 6 months, 3 weeks ago
"response.content" won't return the content type, "response.content_type" doesn't exist. This question has no correct answer as long as we have only the listed options.
upvoted 2 times
...
herrmann69
9 months ago
Best matching are: status_code 200 content none "status_code = response.status_code" wouldn't work though, since "response" is not defined. It' named "resp" in the line before. Also "self.assertEqual(resp.content, 'application/json')" will always fail, since the response content-type is part of the header. The correct way would be: self.assertEqual(resp.headers["content-type"], 'application/json')
upvoted 3 times
...
brunorpacheco
1 year, 9 months ago
status_code 200 content_type none
upvoted 3 times
EAG
11 months, 2 weeks ago
Not content_type, but content
upvoted 1 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