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

Practice Paper 2-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)
22 views2 pages

Practice Paper 2-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- B

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]


1) Create a DataFrame by name Emp and perform the further questions based on this
DataFrame.
Name Quarter1 Quarter2 Quarter3 Quarter4
Prem 2000 5800 20000 1400
Prakash 4000 2500 16000 3700
Meena 5000 5400 7000 1700
Ram 4400 3000 3600 2000
Raj 10000 2900 8200 6000
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
(Karan,6000,5000,9000,10000)
3. Add a new Column by name Total_Sales by adding all the Quarter Values.
4. Create a CSV File of above dataframe by name Data.csv
5. Create Bar Graph using Candidate and Total_Sales columns Where Candidate name
must on X axis and Total_Sales values 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 B2_2025 and use to work with table.
b. Create the Following Table name “EMPL” with Constraint

No – int Primary Key


Name – Varchar(50)
Age – Int
Department - Varchar(50)
Datofrtd - date #Format YYYY-MM-DD
Salary - int
Sex - Varchar(1)

c. Insert 8 records into the table.


Table: EMPL

Page 1 of 2
d. Write queries based on the above table
a. Display all records of above Table in Descending order on behalf of Age Column.
b. Display Name, Department, Sex, Dateofrtd whose Sex is “F” and Department as “Language”.
c. Display maximum, minimum and sum of Salary of Charges.
d. Display number of Employee Department Wise.
e. Delete records of those Employee whose age is more than 50.

Internal Examiner: _____________ External Examiner: _____________

Page 2 of 2

You might also like