>
Exams
>
Computer Science
>
Code Optimization
>
which of the following is correct code to plot lin
Question:
Which of the following is correct code to plot line Chart with dotted linestyle ?
CUET (UG) - 2023
CUET (UG)
Updated On:
Feb 21, 2026
plt.plot(x, y)
plt.linestyle = “dotted”
plt.show()
plt.plot(x, y)
plt.linestyle | “dotted” )
plt.show()
plt.plot(x, y), linestyle - dotted)
plt.show()
plt.plot(x, y, linestyle = “dotted”)
plt.show()
Hide Solution
Verified By Collegedunia
The Correct Option is
D
Solution and Explanation
The correct option is (D) :plt.plot(x, y, linestyle = “dotted”)
plt.show().
Download Solution in PDF
Was this answer helpful?
0
0
Questions Asked in CUET exam
Find the ratio of de-Broglie wavelengths of deuteron having energy E and \(\alpha\)-particle having energy 2E :
CUET (UG) - 2026
Dual nature of radiation and matter
View Solution
If 36: 84 :: 42: X, then the value of X, is:
CUET (UG) - 2025
Ratio and Proportion
View Solution
5, 10, 17, 26, ?, 50 — Find the missing number.
CUET (UG) - 2025
Number Series
View Solution
The area (in sq. units) of the region bounded by the parabola y2 = 4x and the line x = 1 is
CUET (UG) - 2025
Application of Integrals
View Solution
Ram purchased a watch at a cost of \( \left(\frac{9}{10}\right)^{th} \) of the original cost and sold at 8% more than the original cost. His profit/loss is
CUET (UG) - 2025
Profit and Loss
View Solution
View More Questions