0% found this document useful (0 votes)
2 views3 pages

Practical Ip

The document outlines the AISSCE IP (065) Practical Examination for Informatics Practices, consisting of three sets of questions focusing on Python Pandas and SQL queries. Each set includes tasks such as creating dataframes, manipulating data, and generating visualizations, along with SQL operations on provided datasets. The total marks for the practical examination are 30, with specific marks allocated for each question and additional components like practical and project files.

Uploaded by

amech4418
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)
2 views3 pages

Practical Ip

The document outlines the AISSCE IP (065) Practical Examination for Informatics Practices, consisting of three sets of questions focusing on Python Pandas and SQL queries. Each set includes tasks such as creating dataframes, manipulating data, and generating visualizations, along with SQL operations on provided datasets. The total marks for the practical examination are 30, with specific marks allocated for each question and additional components like practical and project files.

Uploaded by

amech4418
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/ 3

AISSCE IP (065) PRACTICAL EXAMINATION

SUBJECT: INFORMATICS PRACTICES (065)


TIME: 3 HRS. M.M.:30
(SET-I)
Q.NO. Python Pandas and Data Visualization Marks
Write a program in python to create the following dataframe named 't
emp" storing the 2
details of employees:
ename job salary dojoin department
1001 Scott Manager 90000 2010-10-01 Accounts
1002 Tom Clerk 34000 2010-01-04 Admin
1003 Joy Clerk 32000 2009-03-01 Admin
1004 Sam Salesman 40000 2009-04-01 Sales
1005 Martin Manager 85000 2008-08-05 Sales
1006 Michel Salesman 43000 2008-08-06 Sales
1007 Francis Clerk 30000 2009-10-10 Accounts
Considering the above dataframe answer the following queries by writing appropriate
command in python pandas.
a) Add a new column named bonus (just after salary column) which is 15% of their salary.
b) Add a row with row index 1008 as Robin, Analyst, 60000, 9000, 2011-04-01, Admin.
c) Now change the salary of Francis as 35000.
d) Display the details of Sales and Accounts department.
e) Displaythe employee name, job and salary for all those employees whose salary lies
between 30000 and 50000.
f) Delete a column dojoin permanently.
g) Now plot a bar chart depicting the employee name on x-axis and their corresponding 3
salary on y-axis, with appropriate Graph title, x-axis title, y-axis title, gridlines and color
etc. as give below: ABCPVTLimited
Employees Salary analysis

soooo

øooo

Total = 8
SQL Queries with Solution
Q.2- Consider the above table as "empu and first column (index) as 'empno' and it is aprimary
key. Answer the following SQL queries.
a) Add a row with empno 1008 as Robin, Analyst, 60000, 2011-04-01, Admin. 1
b) Display the detail of all employees whose salary lies in the range 50000 and 100000. 1
c) Display average salary and no. of employees of each department. 1
d) Display maximum salary of each type of job for Clerk and Manager only. 1
e) increase the salary of sales department employees by 5 percent. 1
f) Delete the column dojoin. 1
g) Display detail of em 10 ees in descendin order of their sala 1
Total = 7
3. Practical File 5
4. Project File 5
5. Viva Voice 5
TOTAL MARKS IN PRACTICAL = 30
AISSCE IP (065) PRACTICAL EXAMINATION
SUBJECT; INFORMATICS PRACTICES (065)
TIME: 3 HRS. M.M.:30
(SET-2)
Q.NO. Python Pandas and Data Visualization Marks
QI- Writea programin python to create the following dataframe named storing the 2
following details:
Country Population BirthRate UpdateDate
O China 1379750000 12.00 2016-08-11
1 India 1330780000 21.76 2016-08-11
2 United States 324882000 13.21 2016-08-11
3 Indonesia 260581000 18.84 2016-01-07
4 Brazil 206918000 18.43 2016-08-11
5 Pakistan 194754000 27.62 2016-08-11
Considering the above dataframe answer the following queries by writing appropriate
command in python pandas.
1
a) Display complete data for China and India.
1
b) Display Country, Population and BirthRate of Brazil and Pakistan.
1
c) Create a CSV File from the above data frame.
1
d) Retrieve data from above created csv file into a new dataframe dfl with columns
Country and Population only .
2
e) Now plot a bar chart
depicting the Country on CountryWisepopulation
Analysis
x-axis and their
corresponding Population
on y-axis, with appropriate
Graph title, x-axis title, y-
axis title, gridlines and
color etc.

Total = 8
SQL Queries with Solution
Q.2- Consider the table "Pop" with above data of the given data frame and define first column 2
•country'as primary key, feed all records in to the table. Now answer the following sql
queries.
a) Display those records whose population lies in the range 1300000000 and 140000000. 1
b) Display maximum and minimum BirthRate for each UpdateDate. 1
c) Display number of countries updated on each update date. 1
d) increase the birthrate of India by 2.0 1
e) Display detail of the given table in ascending order of their population. 1
Total = 7
3. Practical File 5
4. Project File 5

5. Viva Voice 5
TOTAL MARKS IN PRACTICAL= 30
AISSCE IP (065) PRACTICAL EXAMINATION
SUBJECT: INFORMATICS PRACTICES (065)
TIME: 3 HRS. M.M.:30
(SET-3)
Q.NO. Python Pandas and Data Visualization Marks
QI- Write a program in python to create the following dataframe named "temp" storing the 2
following details:
Cid City MaxTemp MinTemp Rainfall
o COI Delhi 40 32 24.1
1 C02 Bengaluru 31 25 36.2
2 co Chennai 35 27 40.8
3 C04 Mumbai 29 21 35.2
4 cos Kolkata 39 23 41.8
5 C06 Allahabad 41 30 32.4
Considering the above dataframe answer the following queries by writing appropriate
command in python pandas.
1
a) Add a new column named Humidity as [54, 65,70,75,71,59].
1
b) Display MaxTemp, MinTemp of Delhi and Mumbai.
1
c) Create a CSV File from the above data frame named weather.csv.
1
d) Change the column name MaxTemp to MxT and MinTemp to MnT.
e) Now plot a multi-bar chart depicting the City Name on x-axis and their corresponding
2
MaxTemp and MinTemp on y-axis, with appropriate Graph title, x-axis title, y-axis title,
gridlines, legends and color etc.

Tempera Analysis

Total = 8
SQL Queries with Solution
Create the table "weather" as per given above dataframe, take data type and size 2
yourself and insert all records. Don't define primary key while creating table. After 1
creating the table define primary key on the column Cidand answer the following sql
queries.
a) Add a column Zone and update this with values - North, South, South, West, East, 1
North.
b) Display Average of MaxTemp, MinTemp and Rainfall of each Zone. 1
c) Display detail for Delhi and Mumbai. 1
d Displa Ci and Rainfall whose rainfall is in the range 30 and 40. 1
Total = 7

3. Practical File 5
4. Pro ect File 5
Viva Voice 5
5.
TOTAL MARKS IN PRACTICAL = 30

You might also like