exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 270 discussion

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

DRAG DROP
-

Drag and drop the code from the bottom onto the box where the code is missing to stop the REST API requests if a “Too Many Requests” response is received. 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
mariodevx
6 months, 3 weeks ago
from: https://docs.python.org/3/library/random.html random.random() Return the next random floating point number in the range 0.0 <= X < 1.0 "random.random()" is wrong
upvoted 1 times
kirrim
6 months, 2 weeks ago
mariodevx is correct that random.random() will return a float. But Python won't choke on it, it still works: >>> import random >>> import time >>> random.random() 0.3669229981594262 >>> random.random() 0.947150630490912 >>> 2**1 + random.random() 2.347214479111156 >>> time.sleep(2**1 + random.random()) >>>
upvoted 4 times
...
...
First two options are definitely correct, although I can't see why the last one is "random.random()" as opposed to 10, or even 440 for that matter. I think the code is correct either way, but I guess the random.random() option is just "more correct" according to Cisco
upvoted 3 times
...
lznlxl
1 year, 3 months ago
given answer is correct.
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago