exam questions

Exam 200-901 All Questions

View all questions & answers for the 200-901 exam

Exam 200-901 topic 1 question 90 discussion

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


Refer to the exhibit. A Python code has been written to query a device. The executed code results in the error shown. Which action resolves the problem?

  • A. import json
  • B. requests(ג€GETג€, base_url + request_url, cookies=cookies)
  • C. pip install requests
  • D. import requests
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
Ghneuma
10 months ago
Selected Answer: D
You get the "NameError" whether the "requests" module is installed or not, if the "requests" module is not imported. If you try to import the "requests" module when it's not installed, you get the "ModuleNotFoundError".
upvoted 1 times
...
Gabisan1112
1 year, 10 months ago
C. Please check out this StackOverflow code. For me worked when I tried this example. https://stackoverflow.com/questions/26895371/nameerror-name-requests-is-not-defined
upvoted 1 times
cerifyme85
1 year, 9 months ago
U still have to import requests module
upvoted 1 times
...
...
macxsz
2 years, 4 months ago
Selected Answer: D
D. import requests
upvoted 1 times
...
anagy11
2 years, 7 months ago
Selected Answer: D
It's D
upvoted 2 times
...
designated
2 years, 8 months ago
Selected Answer: D
Could it be C or D.. C. pip install requests - cause the requests may not yet be installed D. import requests - cause the requests library isn't being imported to use But since the question is not showing the import requests, it might be D.
upvoted 1 times
...
CCNPWILL
2 years, 9 months ago
Answer is B I think. GET needs to be all caps.
upvoted 1 times
...
CTshirt
2 years, 9 months ago
I think it's D, but it could be C.
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