exam questions

Exam DP-500 All Questions

View all questions & answers for the DP-500 exam

Exam DP-500 topic 1 question 25 discussion

Actual exam question from Microsoft's DP-500
Question #: 25
Topic #: 1
[All DP-500 Questions]

HOTSPOT -
You have an Azure Synapse notebook.
You need to create the visual shown in the following exhibit.

How should you complete the code? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

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
Ndz
Highly Voted 2 years, 5 months ago
I ran the code locally. The answer is correct.
upvoted 9 times
...
jl234
Most Recent 1 year, 8 months ago
Tried the difference between plotting fill and fill_between. fill_between will get the plot as shown in the question, while using fill will get a plot with y axis starts from 2. So, the answer is fill_between and suptitle.
upvoted 2 times
...
orionduo
1 year, 10 months ago
plt.fill_between(x,y) plt.suptitle('chart 1', fontweight = 'bold') The answer is correct. I have tested in Python.
upvoted 1 times
...
Plb2
2 years ago
https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.fill.html Notes Use fill_between() if you would like to fill the region between two curves. Answer is fill not fill_between
upvoted 2 times
...
DarioReymago
2 years, 3 months ago
is ok .fill_between & suptitle
upvoted 3 times
...
master_artyom1983
2 years, 5 months ago
Correct import matplotlib.pyplot as plt x = [0,1,2,3,4,5] y = [1.5,3,5.3,6,10,2] plt.plot(x,y,'-o', color = 'red') plt.fill_between(x,y) plt.suptitle('chart 1', fontweight = 'bold') plt.show()
upvoted 4 times
...
AshwinN1992
2 years, 6 months ago
Please confirm the correct answer
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 ...