Home

Designed for school students & undergraduate entrance aspirants preparing for board exams, NEET, JEE and more.

JEE (Mains & Adv)NEET (UG)CBSE BoardISC BoardUP BoardCUET

Built for graduates & professionals targeting competitive exams — UPSC, CAT, GMAT, GRE, IELTS, banking & more.

GREGMATCATUPSCIBPSIELTSTOEFLSATACT

Core school & undergraduate subjects aligned with CBSE, ISC, UP Board, NEET and JEE syllabi.

PracticeMock TestsResources
Back to Categories
Question 1 of 9

Informatics Practices > data-handling-and-visualization > Data Visualization

Progress: 0%
Success Rate: 0%
Question 1

Gurkirat has to fill in the blanks in the given Python program that generates a line plot as shown below. The given line plot represents the temperature (in degree Celcius) over five days as given in the table:

Days | Temperature Day 1 | 30 Day 2 | 32 Day 3 | 31 Day 4 | 29 Day 5 | 28

Diagram Line Plot

import ______________ as plt # Statement-1
days=['Day 1', 'Day 2', 'Day 3', 'Day 4', 'Day 5']
temp = [30, 32, 31, 29, 28]

plt.______________(days, temp) # Statement-2
plt.xlabel('______________') # Statement-3
plt.ylabel('Temperature')
plt.title('______________') # Statement-4
plt.show()

Write the missing statements according to the given specifications: (i) Write the suitable code to import the required module in the blank space in the line marked as Statement-1. (ii) Fill in the blank in Statement-2 with a suitable Python function name to create a line plot. (iii) Refer to the graph shown and fill in the blank in Statement-3 to display the appropriate label for x-axis. (iv) Refer to the graph shown and fill in the blank in Statement-4 to display the suitable chart title.

0 of 9 answered

Current Session

Questions Answered0
Correct Answers0
Session Success Rate0%
Ready to Start! 🚀

Community Stats

Active Learners11
Questions Attempted103
Community Success Rate77%

Track Your Progress

Sign up to save your practice progress and get personalized insights across all topics.

We Value Your Privacy

Edvaya uses cookies to enhance your learning experience, analyze platform usage, and provide personalized content. You can customize your preferences or accept all cookies to continue.

By continuing, you agree to our Cookie Policy and Privacy Policy