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 2

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

Progress: 0%
Success Rate: 0%
Question 1

(a) Akriti keeps the calorie count of different food items as follows: Food=['Apple', 'Banana', 'Rice', 'Wheat', 'Carrot'] Calorie=[72,105,204,455,52] Write a Python code to generate a Bar Chart on the given data, having suitable Chart Title and labels for X and Y axis. Also add suitable statement to save this chart with the name calorie.png.

OR

(b) Consider the following data: Year | Student Strength 2019 | 150

2020 | 180

2021 | 240

2022 | 120

2023 | 180

Write a Python code to draw the line chart having title "Year Wise Students Strength in Class XII", X-axis label "Year", Y-axis label "Student Strength", and points appropriately plotted.

Line Chart Diagram Line Chart

Also give suitable Python statement to save this chart with name, stud.png.

0 of 2 answered

Current Session

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

Community Stats

Active Learners31
Questions Attempted604
Community Success Rate70%

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