exam questions

Exam DP-500 All Questions

View all questions & answers for the DP-500 exam

Exam DP-500 topic 1 question 64 discussion

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

HOTSPOT -
You have the following code in an Azure Synapse notebook.

Use the drop-down menus to select the answer choice that completes each statement based on the information presented in the code.
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
Ramiel
Highly Voted 2 years, 5 months ago
The answer should be "one scatterplot" and "three markers".
upvoted 26 times
Ati1362
2 years, 4 months ago
I ran the code, Ramiel answer is correct: "1 scatterplot" and "3 markers"
upvoted 7 times
...
solref
2 years, 1 month ago
I ran the code too. The ANSWEAR = 1 Scatterplot and 3 markers
upvoted 4 times
solref
2 years, 1 month ago
import matplotlib.pyplot as plt x1= [2, 3, 4] y1= [5, 5, 5] x2= [1, 2, 3, 4, 5] y2= [2, 3, 2, 3, 4] x3= [1, 2, 3, 4, 5] y3= [6, 8, 7, 8, 7] plt.scatter(x1,y1) plt.scatter(x2,y2,marker= 'v', color= 'r') plt.scatter(x2,y3,marker= '^', color= 'm') plt.title('Scatter Plot') plt.show()
upvoted 4 times
...
...
...
Akin_Eren
Most Recent 1 year, 4 months ago
1 scatterplot with 3 markers ran the code
upvoted 1 times
...
Deloro
1 year, 8 months ago
confirmed!! ran code, 1 plot, 3 markers
upvoted 1 times
...
orionduo
1 year, 9 months ago
A Scatter plot is a plot in which coordinates are shown as markers(dots) on the graph. A Scatter plot is useful for showing the relationship between the variables. In matplotlib, a scatter plot is implemented using the scatter() function, which takes at least two parameters, x-axis data and y-axis data. Therefore, there are 3 scatter() functions means that there are 3 scatter plots The anwser, I think, is 3 scatterplots & 3 makers
upvoted 1 times
Deloro
1 year, 8 months ago
I ran the code, 1 plot, 3 markers
upvoted 1 times
...
...
dtmhien
1 year, 10 months ago
one scatterplot - 3 marker - tested
upvoted 1 times
...
Plb2
1 year, 10 months ago
It's multiple (3) scatterplots in one figure (and using three markers to help distinguish the three scatterplots)
upvoted 2 times
...
DarioReymago
2 years, 1 month ago
3 scatterplot and 3 markers
upvoted 2 times
...
Az301301X
2 years, 1 month ago
OK, using Chet GPT: i have this code in Azure Synapse Notebook: import matplotlib.pyplot as plt x1= [2, 3, 4] y1= [5, 5, 5] x2= [1, 2, 3, 4, 5] y2= [2, 3, 2, 3, 4] y3= [6, 8, 7, 8, 7] plt.scatter(x1,y1) plt.scatter(x2,y2,marker= 'v', color= 'r') plt.scatter(x2,y3,marker= '^', color= 'm') plt.title('Scatter Plot') plt.show() How many markers and scatterplots will i get???
upvoted 1 times
Az301301X
2 years, 1 month ago
Chat GPT answer: You will get three scatter plots, one for each set of data points (x1, y1), (x2, y2), and (x2, y3). The first scatter plot will have circular markers, the second scatter plot will have downward-pointing triangles as markers, and the third scatter plot will have upward-pointing triangles as markers. Therefore, you will have a total of two different markers.
upvoted 1 times
...
...
DS_newb
2 years, 1 month ago
to those really do EDA or visualization in python, should know there should only one plot figure
upvoted 2 times
...
Az301301X
2 years, 2 months ago
OK, If I see the comments from cookiemonster42, I would say that the right answer is: "3 scatterplot" and "2 markers". I havent ran the code, but reading it one could infer the outcome.
upvoted 1 times
...
dera23
2 years, 2 months ago
The answer is 3 scatter plots and 3 markers like cookiemonster42 explained below
upvoted 1 times
...
cookiemonster42
2 years, 3 months ago
This is a Python script that generates a scatter plot using the Matplotlib library. The script generates 3 scatter plots, with the following characteristics: First scatter plot: x-axis data: [2, 3, 4] y-axis data: [5, 5, 5] Second scatter plot: x-axis data: [1, 2, 3, 4, 5] y-axis data: [2, 3, 2, 3, 4] Marker style: 'v' Color: 'r' (red) Third scatter plot: x-axis data: [1, 2, 3, 4, 5] y-axis data: [6, 8, 7, 8, 7] Marker style: '^' Color: 'm' (magenta) The final line, plt.show(), is used to display the scatter plot in a GUI window.
upvoted 2 times
Az301301X
2 years, 3 months ago
So, the correct answer should be 3 scatterplot and 3 markers???
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