0% found this document useful (0 votes)
2 views

pract_23-ip

The document contains practical exercises for Informatics Practices (065) across four sets (A, B, C, D). Each set includes questions related to Python programming, data manipulation using pandas, and SQL queries for various tables. Topics covered include creating Series and DataFrames, plotting charts, and writing SQL statements for data retrieval.

Uploaded by

Harshit Bats
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

pract_23-ip

The document contains practical exercises for Informatics Practices (065) across four sets (A, B, C, D). Each set includes questions related to Python programming, data manipulation using pandas, and SQL queries for various tables. Topics covered include creating Series and DataFrames, plotting charts, and writing SQL statements for data retrieval.

Uploaded by

Harshit Bats
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Practical SUB: INFORMATICS PRACTICES(065) Set A

Q1. Write a python code to create a Series object using the python sequence

[4,6,8,10] . Assume that pandas is imported as alias name pd. [2]

Q2. Create and Display a DataFrame from a 2D dictionary, Sales, Which stores

the quarter-wise sales as inner dictionary for two years as given below:[3]

yr1 yr2

Qtr1 34500 44900

Qtr2 56000 46100

Qtr3 47000 57000

Qtr4 49000 59000

Q3. Write a python code to plot a Line chart to depict the changing weekly onion

prices for four weeks. week=[1,2,3,4], price=[40,80,100,50]. [3]

Give appropriate axes labels. add Legend, title, and Label to a Line plot.

Q4. Give Mysql/sqlite3 Statement for the following: Table: PARTICIPANTS

Column of the Table :PNO, EVENT, SNAME, CLASS, DOB [3]

a) To display details of all PARTICIPANTS of class 10 and 12.

b) To display the SNAME and CLASS of all PARTICIPANTS in ascending order

of their SNAME.

c) TO display the number of PARTICIPANTS along with their respective

CLASS, of every CLASS.

Q5. Give Mysql/sqlite3 Statement for the following: Table: STUDENT [2]

Column of the Table: Student_No, Class, Name, Game, Grade, SUPW, Grade

a) To display the name of students who are getting a grade ‘C’ in either

GAME or SUPW.

b) To display the number of students getting grade ‘A’ in Cricket.

************************************
Practical SUB: INFORMATICS PRACTICES(065) Set B

Q1.Write a python code to create a Series object using a dictionary that stores

the number of students in each section of class 12 in your school. [2]

Q2.Write a python code to create a dataframe from a List containing dictionaries

of sales performance of four Zonal offices. Zone name should be row labels.[3]

Target Sales

zoneA 56000 58000

zonaB 70000 68000

zoneC 75000 78000

zoned 60000 61000

Q3.Given the following set of data:

78 82 34 56 90 34 58 34 23 17 78 67 56 45 89 [3]

a) create a horizontal histogram from the above data.

b) create a step type of histogram from the above data.

c) create a cumulative histogram from the above data.

Q4.Give Mysql/sqlite3 Statement for the following: Table: CLUB

Column of the Table :Coach-ID, CoachName, Age, Sports, Dateofapp, Pay, Sex [2]

a) To show all information about the swimming coaches in the club.

b) To List names of all coaches with their date of appointment(Dateofapp)

in descending order.

Q5. Give Mysql/sqlite3 Statement for the following: Table: Teacher [3]

Column of the Table: No, Name, Age, Department, Dateofjoin, Salary, Sex

a) To show all information about the teacher of History department.

b) To List the names of female teachers who are in Hindi department.

c) To List names of all teachers with their date of joining in ascending order.

**********************************************
Practical SUB: INFORMATICS PRACTICES(065) Set C

Q1. Write a python code to create a Series object using individual character

‘a’,’e’,’o’,’h’,’g’. Assume that pandas is imported as alias name pd. [2]

Q2. Write a python code to create a dataframe from a 2D List . Specify own

index labels. [3]

Q3.Consider two sequence a and b:

a=[1,2,3,4] b=[2,4,6,8]

Write a python code to plot a bar chart of different widths and colours. [3]

Q4. Q1. Give Mysql/sqlite3 Statement for the following: Table: Hospital [3]

Column of the Table : No, Name, Age, Department, Dateofadm, Charges, Sex

a) To select all the information of patients of cardiology department.

b) To List the name of female patients who are in ENT department.

c) To List the name of all patients with their date of admission in ascending

order.

Q5. Give Mysql/sqlite3 Statement for the following: Table: CLUB [2]

Column of the Table :Coach-ID, CoachName, Age, Sports, Dateofapp, Pay, Sex

a) To show all information about the swimming coaches in the club.

b) To List names of all coaches with their date of appointment(Dateofapp)

in descending order.

***************************
Practical SUB: INFORMATICS PRACTICES(065) Set D

Q1. Write a python code to create a Series object using the python sequence

[11,21,31,41] . Assume that pandas is imported as alias name pd. [2]

Q2. Write a python code to create a dataframe from a 2D List . Specify own

index labels. [3]

Q3.Marks is a List stores marks of a students in 10 unit tests. Write a python

code to plot Line chart the student‘s performance in these 10 unit tests. [3]

week=[1,2,3,4,5,6,7,8,9,10]

marks=[12,10,10,11,08,07,16,18,14,15]

Q4. Give Mysql/sqlite3 Statement for the following: Table: PARTICIPANTS

Column of the Table :PNO, EVENT, SNAME, CLASS, DOB [3]

a) To display details of all PARTICIPANTS of class 10 and 12.

b) To display the SNAME and CLASS of all PARTICIPANTS in ascending order

of their SNAME.

c) TO display the number of PARTICIPANTS along with their respective

CLASS, of every CLASS.

Q5. Give Mysql/sqlite3 Statement for the following: Table: STUDENT [2]

Column of the Table: Student_No, Class, Name, Game, Grade, SUPW, Grade

a) To display the name of students who are getting a grade ‘C’ in either

GAME or SUPW.

b) To display the number of students getting grade ‘A’ in Cricket.

************************************

You might also like