nerdexam
MicrosoftMicrosoft

DP-500 · Question #54

DP-500 Question #54: Real Exam Question with Answer & Explanation

Sign in or unlock DP-500 to reveal the answer and full explanation for question #54. The question stem and answer options stay visible for context.

Explore and visualize data

Question

You have the following code in an Azure Synapse notebook: ```python import matplotlib.pyplot as plt x1 = [1, 3, 4, 5, 6, 7, 9] y1 = [4, 7, 2, 4, 7, 8, 3] x2 = [2, 4, 6, 8, 10] y2 = [5, 6, 2, 6, 2] plt.bar(x1, y1, label='Blue Item', color='b') plt.bar(x2, y2, label='Green Item', color='g') plt.plot() plt.xlabel("Number") plt.ylabel("Height") plt.title("My Chart") plt.legend() plt.show() ``` 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.

Unlock DP-500 to see the answer

You've previewed enough free DP-500 questions. Unlock DP-500 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Matplotlib#Data Visualization#Bar Chart#Python Programming
Full DP-500 PracticeBrowse All DP-500 Questions