0% found this document useful (0 votes)
97 views1 page

Practical 12 SA 1 SET B

The document provides instructions for a half-yearly practical examination for Class 12 Information Practices. It contains 4 questions related to Python programming, SQL queries, and creating charts from CSV data. Question 1 involves creating and manipulating a DataFrame with cricket player statistics. Question 2 requires creating a line chart comparing runs of two cricketers from data in a CSV file. Question 3 provides a car database table and asks to perform various SQL queries on it. Question 4 and 5 are for submitting a practical file and viva voce respectively.

Uploaded by

makewithshreya
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)
97 views1 page

Practical 12 SA 1 SET B

The document provides instructions for a half-yearly practical examination for Class 12 Information Practices. It contains 4 questions related to Python programming, SQL queries, and creating charts from CSV data. Question 1 involves creating and manipulating a DataFrame with cricket player statistics. Question 2 requires creating a line chart comparing runs of two cricketers from data in a CSV file. Question 3 provides a car database table and asks to perform various SQL queries on it. Question 4 and 5 are for submitting a practical file and viva voce respectively.

Uploaded by

makewithshreya
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/ 1

Half Yearly Examination (Practical 2023-24)

Class: XII
Subject: Information Practices (Practical)
Duration: 3 Hours Set B M.M.: 30

Q.1. Write a python program to create following DataFrame and write given statements:[6]
SNO Batsman Test ODI T20
1 Virat Kohli 3543 2245 1925
2 Ajinkya Rehane 2578 2165 1853
3 Rohit Sharma 2280 2080 1522
4 Shikhar Dhawan 2158 1957 1020
5 Hardik Pandya 1879 1856 980

i. Create the above dataframe as given.


ii. Display ODI and T20 Runs of Rohit Sharma.
iii. Add Ishan Kishan as a next player and runs as Test:78, ODI:776, T20:686.
iv. Add a Column as ‘IPL’ and runs as [7263,1200,6211,4500,2309,2324]
v. Rename the column name ‘T20’ to ‘Twenty20’.
vi. Display total runs of ‘Virat Kohli’ by adding all formats.

Q. 2. Create a CSV file named ‘cricket.csv’ for the following data and display Line chart
from CSV file only:
Virat_Runs:[100,50,42,80]
Rohit_Runs=[45,100,80,60] [4]
Cricket=[‘Match1’,’Match2’,’Match3’,’Match4’]
Compare both cricketers’ runs in all matches with line charts use different line colors.
 Use appropriate X label, Y label and Legend. Use ‘Student Result’ as chart title.

Q.3. Observe the given Table: Car [10]


Ccode CarName Company Color Capacity Charges
501 A_Star Suzuki Red 3 14
503 Indigo Tata Silver 3 12
502 Innova Toyoto White 7 15
509 SX4 Suzuki Silver 4 14
510 C_Class Mercedes Red 4 35
Write SQL statements for given queries:
i. Create the above ‘Car’ table in SQL with appropriate datatypes.
ii. Insert all cars details as shown in above table.
iii. Display number of cars in each company from the table.
iv. Display number of cars in each color which includes colors having more than 1 car.
v. To display names of Silver colored Cars.
vi. To display name of car, company, and capacity of cars in descending order of their
seating capacity.
vii. Display first character of cars which have charges 12 or more.
viii. Display second and third character of all cars company name.
ix. To display most expensive car in terms of charges.
x. To display the position of ‘e’ in car’s color.
Q.4. Practical File [05]
Q.5. Viva-Voce [05]

You might also like