0% found this document useful (0 votes)
38 views30 pages

Practical File Radhika-1

Uploaded by

kashishc168
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)
38 views30 pages

Practical File Radhika-1

Uploaded by

kashishc168
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/ 30

LITTLE FAIRY

PUBLIC SCHOOL
ACADEMIC YEAR 2023-2024

INFORMATICS PRACTICES
NAME- RADHIKA
CLASS- XII-C
ROLL NO- 21
CERTIFICATE
This is to certify that RADHIKA
has successfully completed the practice file of
INFORMATICS PRACTICES
under my guidance and supervision. I am
satisfied with their initiative and efforts for the
complex of curriculum of CBSE CLASS
X1I examination

DATE 01.09.2024

SIGNATURE OF EXAMINER
Ques 1 To write a Python program to create a Series to store 5
students Percentage Using dictionary and print all the elements
that are above 75 percentage.
Code

Output

Ques 2 To write a Python program to create a Series object that


stores the Initial budget allocated (50000/- each) for the four
quarters of the year: Qtr1, Qtr2, Qtr3 and Qtr4.
Code

Output

Ques 3 To write a Python program to create a Series object that


stores the Employee names as index and their Salary as values
Code

Output

Ques 4 To Write a Python program to create a Series object with


Employee names as the index and their salaries as values. Accept
the name of the employee whose salary needs to be changed,
along with the new salary, and update it in the Series.

Code
Output

Ques 5 To create a program in python to perform following


mathematical Operations on Two Series objects:
Addition (ii) Subtraction (iii) Multiplication (iv) Division.
Code
Output

Ques 6 To write a Python program to create two series i.e.


population and average income of Four Zones, and then calculate
per capita income storing in third pandas series print it.
Code

Output
Ques 7 To write a Python program to create a Series using list and
display the following attributes of the Series: (i) index (ii) dtype (iii)
size (iv) shape (v) hasnans
Code

Output

Ques 8 To write a Python program to create a Series using list of


Marks of 10 students and display first 5 Students’ marks and Last
2 Students’ marks from Series object.
Code
Output

Ques 9 To write a Python program to create a panda’s Data Frame


for the following table Using Nested list:
Code

Output
Ques 10 To write a Python program to create a panda’s DataFrame
called DF for the following table Using Dictionary of List and
perform the following operations: (i) To Display only column 'Toys'
from DataFrame DF. (ii) To Display the row details of 'AP' and 'OD'
from DataFrame DF. (iii) To Display the column 'Books' and
'Uniform' for 'M.P' and 'U.P' from DataFrame DF. (iv) To Display
consecutive 3 rows and 3 columns from DataFrame DF.
code
Output

Ques 11 To write a Python program to create a panda’s DataFrame


called DF for the following table Using Dictionary of List and
perform the following operations: (i) Insert a new column “Bags”
with values as [5891, 8628, 9785, 4475]. (ii) Delete the row details
of M.P from DataFrame DF.
Code
Code

Ques 12 To write a Python program to create a pandas DataFrame


to analyze number of Government and Private medical college
and their Total seats,Fees statewise details using the dataset
available at www.data.gov.in. Also, perform the following
operations. (i) To Change the name of the state AP to Andhra. (ii)
To Count and Display Non-NaN values of each column. (iii) To
Count and Display Non-NaN values of each row. (iv) To Increase
the fees of all colleges by 5% (v) To Replace all NaN values with 0.
Code

Output
Ques 13 To write a Python program to create a panda’s
DataFrame called DF for the following table using Dictionary of
List and display the details of students whose Percentage is more
than 85.
Code

Output

Ques 14 To write a Python program to create a DataFrame using


Dictionary of list and display the following attributes of the
DataFrame: (i) index (ii) columns (iii) axes (iv) dtypes (v) shape (vi)
dimension (vii)
Code

Output
Ques 15 To write a Python program to create a panda’s DataFrame
called Students for the following table and demonstrate iterrows
and iteritems.

Code

Output
Ques 16 To Write a Python program to store the details of
Employess’ such as Empno, Name, Salary into a Employee.csv
file. Also, write a code to read employee details from csv fil
Code

Output

Ques 17 To write a Python program to plot a Line chart to depict


the changing weekly Onion and Brinjal prices for four weeks. Also,
give appropriate axes labels, title and keep marker style as
Diamond and marker edge color as ‘red’ for Onion.
Code OU
Output

Ques 18 To write a Python program to create a DataFrame for


subject-wise average, save it to a CSV file, and then draw a bar
chart using Matplotlib with a width of each bar as 0.25, specifying
different colors for each bar. Additionally, provide a proper title
and axes labels for the bar chart.
Code
O
Ques 19 To write a Python program to plot a multiple bar chart
From CSV file using Matplotlib for subject wise Scores of Class A,
Class B, and Class C. Different colors represent each class, and
subjects include English,Accountancy,Economics,BST and IP.
Proper labels, a title and a legend are displayed on the chart
Code
Output
Ques 20 To write a Python program to plot a Histogram for the
following class interval or range. Also, give appropriate axes
name, title and edege color as ‘red’.
Code

Output
STRUCTURED QUERYLANGUAGE
(SQL)
Ques 20 SQL Queries
QUES 1 Create Database Charity.

QUES 2 Open Database.

QUES 3 Create table charity 1.

QUES 4 Show the structure of table.

QUES 5 Insert values in table.

QUES 6 Display all information from the table .


QUES 7 Write the command to add a column salary to the table charity1.

Ques 8 Delete the column address .

QUES 9 Write the command to change the name of the column from
firstname to emp.name.

QUES 10 Display address and city from table charity1.

QUES 11 Write the command to change the salary from 20000 to 15000
where city is delhi.
QUES 12 Write the command to change the salary and contibution where
city is lucknow.

QUES 13 Write the command to delete the column lucknow.

QUES 14 Write the command to display the unique cities from table.

QUES 15 Write the command to display the information of the people


whose salary is 15000.

QUES 16 Write the command to display lastname of all employes in


descending order of salary
QUES 17 Write the command to show the information where name like s
%.

QUES 18 Write the command to show the information of those where city
is not Mumbai

QUES 19 Display information of those whose contribution is greater than


200

Ques 20 Delete the database

ADD COLUMN MOBILE NO AND CITY.


CHANGE COLUMN CITY TO STATE AND DELETE COLUMN STATE.

INSERT VALUES INTO TABLES .

SELECT ALL INFORMATION FROM TABLE


UPDATE QUERIES

SELECT ALL INFORMATION FROM THE TABLE

DELETE QUERIES

SELECT NAME , GENDER AND MARKS FROM TABLE STUDENT


SELECT ALL INFORMATION OF MALE STUDENTS

SELECT ALL INFORMATION FROM STUDENT WHERE ROLL NO IS SMALLER THAN 8.

SELECT ROLL NO , NAME AND MARKS FROM STUDENT WHERE MARKS BETWEEN 80
AND 100.

SELECT ROLL NO NAME , MARKS FROM STUDENT WHERE MARKS NOT BETWEEN 80
AND 100.

SELECT INFORMATION OF THOSE STUDENT WHOSE NAME STARTS WITH D

SELECT INFORMATION OF THOSE STUDENTS WHOSE NAME ENDS WITH A


SELECT INFORMATION OF THOSE STUDENTS WHO HAS E IN THEIR NAME.

SELECT ROLLNO NAME AND MARKS OF STUDENT IN ASCENDING ORDER OF MARKS.

SELECT ROLL NO NAME AND MARKS OF STUDENT BY ASSCENDING ORDER

You might also like