0% found this document useful (0 votes)
24 views5 pages

XII IP Practical-Sample Papers-2024

Uploaded by

sanjutara420
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)
24 views5 pages

XII IP Practical-Sample Papers-2024

Uploaded by

sanjutara420
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/ 5

Informatics Practices Practical Sample Paper

1. Write a Python pro Display the index 3 to 7 using loc.gram to create and display a series 5
of even numbers 2, 4, 6, 8, 10, 12, 14,18, 20 with index value a, b, c, d, e, f, g, h, I, j
using Pandas module. Also do the following:

i) Display the last 5 index values.


ii) Display the index 3 to 7 using loc.
iii) Change the element in index 3 to 50
iv) Delete the 4th element from the series.
v) Display index 4,6,and 8.

2.Write a python program to draw a bar chart with the following information : 3

The bar chart should have the following features:


i) X axis label should be “BIRDS” and Y axis label should be “POPULATION”
ii) The title of the chart should be “Bird Population “
iii) The colour of the bars should be green
iv) Use appropriate import statement in the program

3. Write and execute SQL queries for HOTEL table a) to e) 7

HNo integer primary key


Name characters 15
City characters 15
Ratings integer
Contact Characters 15

a) Create the above HOTEL table with Hno as primary key and insert the records
b) Display details of hotels whose name starts with ‘A’ and ends with ‘N’.
c) Delete the details of 3 star hotels
d) To increase the ratings of 4 star hotels to 5 star.
e) Change the column heading from contact to Phone.
Table Name - Hotel
1. Create the given DataFrame of dictionary . 5

RollNo Name Class Section CGPA Stream


1 Aman IX E 8.7 Science
2 Preeti X F 8.9 Arts
3 Kartikey IX D 9.2 Science
4 Lakshay X A 9.4 Commerce

Write commands to :
i. Display the DataFrame
ii. Change the index to S01, S02, S03, S04
iii. Change the index to Name column
iv. Change the index to default value
v. Delete the column total using del.

2 Write a program in python to draw the given bar graph. 3


(Height of Bars are 10,1,0,33,6,8)

3. Write and execute SQL queries for FLIGHT table a) to e) 7


FlNo integer primary key
Name characters 15
Rating integer
Phone Characters 15

a) Create the above FLIGHT table with FlNo as primary key


b) Display first 2 digits of flight number and last 2 characters of flight name as PNR number.
c) Display the details of Emirates flights in descending order of ratings.
d) Change the phone number of Flight number 2001 to 454567
e) Add a column Fare to store fares as integer values.
FlNO Name Rating Contact
1001 Etihad 2 6772222
2001 Emirates 1 6761234
3001 Emirates 1 6761235
1. Develop a python program to create a series ‘SAIR’ of flightno. and flightname stored in a
dictionary as key value pair. 5

1101 Air Arabia


1102 Lufthansa
1103 Air India
1104 Lufthansa
1105 Etihad Airways

i. Add 106 Emirates airlines to services


ii. Make a copy of ‘sair’
iii. Delete Air India
iv. Update Lufthansa to Air Lufthansa
v. Display original and copied series

2. Write a python program to draw a histogram with following information: 3

10 15 10 10 10 15 20 20 20 20 20 25 25

The histogram should have following information


a) X-axis label should be score and Y-axis should be Frequency
b) The title should be Frequency of Score
c) The colour of histogram should be blue with 10 bins.

3.. Given table Teacher below , write SQL queries for a) to e) 7


TEACHER
No. Name Department Salary Sex
1 Raja Computer 8000 M
2 Sangita History 9000 F
3 Ritu Sociology 8000 F
4 Kumar Linguistics 10000 M

a) Create the above table and insert the records.


b) Insert records in the table
c) List the name of female teachers who are drawing salary in the range 8500 and 10000
d) Add a column Email_id to store 25 characters.
e) Display the maximum salary of each department.

4. Journal : 5
5. Project : 5
6. Viva : 5

You might also like