exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 58 discussion

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

DRAG DROP -
Drag and drop the expressions from below onto the code to implement error handling. 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
anon1
Highly Voted 1 year, 9 months ago
Duplicate of question #27...
upvoted 8 times
...
Teringzooi
Most Recent 8 months, 4 weeks ago
Answer: if = status == 201 else And duplicate of question 27.
upvoted 3 times
...
designated
10 months, 1 week ago
Duplicated #42 - The body of if is executed only if this evaluates to create the route or if the status is equal to 201 if = status == 201 (HTTP 201 is CREATED) = correct - So, if the route is I52not be created, the body of else is executed else: = correct Note: if-else statement evaluates the Boolean expression. If the condition is TRUE then, the code present in the “ if “ block will be executed otherwise the code of the “else“ block will be executed Wrong if response == 601 = there is no 6xx HTTP code elif is used to include multiple conditional (and it is not this case) when is used to run a block of code whenever, during the execution of the program, a condition is met or related to an event (and it is not this case)
upvoted 2 times
...
[Removed]
1 year, 6 months ago
if status==201 else
upvoted 4 times
...
lente_kriebels
1 year, 10 months ago
Answer is correct. only like this it will not work. you will need indents behind the if else
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 ...