DP-500 · Question #8
DP-500 Question #8: Real Exam Question with Answer & Explanation
Sign in or unlock DP-500 to reveal the answer and full explanation for question #8. The question stem and answer options stay visible for context.
Question
You have the following Python code in an Apache Spark notebook. ```python import matplotlib.pyplot as plt import numpy as np ys = 100 * np.random.rand(100) x = [x for x in range(len(ys))] plt.plot(x, ys, '-r') plt.fill_between(x, ys, 395, where=(ys > 395), facecolor='g', alpha=0.5) plt.title("Chart Sample") plt.show() ``` Which type of chart will the code produce?
Options
- Aa stacked bar chart
- Ba pie chart
- Ca bar chart
- Dan area chart
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.