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 13

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

Progress: 0%
Success Rate: 0%
Question 1

During a practical exam, a student Ankita has to fill in the blanks in a Python program that generates a bar chart. This bar chart represents the number of books read by four students in one month.

Table Books Read

Help Ankita to complete the code:

Bar Chart

import _____ as plt #Statement-1 students = ['Karan', 'Lina', 'Raj', 'Simran'] books_read = [12, 9, 5, 3] plt.bar( students, _____, label='Books Read') #Statement-2 plt.xlabel('Student Name') plt._____( 'Books Read') #Statement-3 plt.legend() plt.title('_____') #Statement-4 plt.show()

I. Write the suitable code for the import statement in the blank space in the line marked as Statement-1.

II. Refer to the graph shown above and fill in the blank in Statement-2 with suitable Python code.

III. Fill in the blank in Statement-3 with the name of the function to set the label on the y-axis.

IV. Refer the graph shown above and fill the blank in Statement-4 with suitable Chart Title.

0 of 13 answered

Current Session

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

Community Stats

Active Learners31
Questions Attempted625
Community Success Rate69%

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