0% found this document useful (0 votes)
21 views2 pages

Practice Paper 6-1

Uploaded by

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

Practice Paper 6-1

Uploaded by

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

Set- F

Q. 1. Python Pandas and Matplotlib Based Questions [8]


Q. 2. MySQL [7]
Q. 3. Practical record [Journal] [5]
Q. 4. Final Project Submission [5]
Q. 5. Viva [5]

Pandas and Matplotlib [2+1+1+1+2+1= 8M]


a. Create a DataFrame by name Flight and perform the further questions based on this Dataframe.

Fname Year Month Customer


Air india 2010 January 25
Indigio 2010 March 50
Spice Jet 2012 January 35
Jet 2010 December 55
Emirates 2012 December 65
Considering above DataFrame perform below menu as follow:
***Menu***
1. Show all Data
2. Add a New Row With Following Data as respective columns in sequence
(Luftanza,2012,August,86)
3. Add a new Column by name Fare with Scalar Value as 25000.
4. Create a CSV File of above dataframe by name Data.csv
5. Create Bar Graph using Fname and Customer columns Where Fname must on X axis and
Passengers on Y Axis.
i. Apply Valid Title
ii. Apply X label and Y label
6. Exit
2. SQL Queries [1+1+5=7M]
a. Create a database named B6_2025 and use to work with table.
b. Create the Following Table name “GYM” with Constraint
Mcode – Int Primary Key
Mname - Varchar(50)
Gender – Varchar(50)
Age – int
FeeGiven - int
Type – Varchar(50)
DtAdmit - date
3. Insert 8 records into the table.
Table:-GYM
Mcode Mname Gender Age FeeGiven Type DtAdmit
1 Amrish Male 35 6000 Monthly 2016-01-23
2 Rasmi Female 25 8000 Monthly 2016-09-23
3 George Male 42 24000 Yearly 2011-06-27
4 Aryan Male 27 12000 Quarterly 2012-10-16
5 Samit Male 54 6000 Monthly 2015-09-20
6 Laxmi Female 43 500 Guest 2016-01-15
7 Samita Female 22 24000 Monthly 2017-07-18
8 Ajit Male 51 12000 Quarterly 2013-07-08

4. Write queries based on the above table


a. To Display Mname,Age,FeeGiven of those Memebers whose fee is above 12000.
b. To count the number of members of the Gym of each type.

Page 1 of 2
c. To Display the Mname, FeeGiven of all those Memebrs of the Gym with age is ascending order.
d. Display Mname of those members who has “mit” Name anywhere in there Mname.
e. Display types of memberships available. Duplicate values should not be displayed.

Internal Examiner: _____________ External Examiner: ________________

Page 2 of 2

You might also like