AISSCE (2023-24)
INFORMATICS PRACTICES(065)
CLASS XII
MM-15 Set-A TIME:1 hrs.
Q.1 A dictionary Grade contains the following data: (5)
Grade={‘Name’:[‘Rahmi’,’Harsh’,’Ganesh’,’Priya’,’Vivek’,’Anita’,’Karthik’],
’Grade’:[‘A1’,’A2’,’B1’,’A1’,’B2’,’A2’,’A1’]}
Write statements for the followings:
a) Create dataframe called Gr.
b) Add a column called Percentage with the following data:[92,89,None,95,68,None,93].
c) Rearrange the columns as Name, Percentage and Grades.
d) Drop the column(i.e. Grade)by name.
e) Delete the 3rd and 5th rows.
Q.2 Write a code to plot the speed of a passenger train as shown in the figure given below: (3)
Q.3 Mr. Manav, a database administrator in “Global Educational and training Institute” has
created following table named “Training” for the upcoming training schedule.
Training
Training_Id Name Email_Id Topic City Fee
ND01 Mr. Rajan [email protected] Cyber Security New Delhi 10000
GU01 Ms. Urvashi [email protected] ICT in Gurugram 15000
Education
FD01 Ms. Neena Neenarediff.com Cyber Security Faridabad 12000
ND02 Mr. Vinay NULL ICT in New Delhi 13000
Education
GU02 Mr. Naveen [email protected] Cyber Security Gurugram NULL
a) Help him in writing SQL query for the following purpose: (7)
i. Write a query to create a database name(Training).
ii. Write a query to insert 1st row data from Training table.
iii. Write a query to delete the Training_Id(i.e.GU02).
iv. To count how many female candidates will be attending the training.
v. To display list of free trainings.
vi. To add a column feedback with suitable datatype.
vii. Write a query to create table training with suitable datatypes.