AISSCE (2023-24)
INFORMATICS PRACTICES(065)
CLASS XII
MM-15 Set-B TIME:1 hrs.
Q.1 A dictionary Grade contains the following data: (5)
Grade={‘Name’:[‘Rahul’,’Raj’,’Gani’,’driya’,’Sunita’],
’Grade’:[‘A1’,’A2’,’B1’,’A1’,’B2’]}
Write statements for the followings:
a) Create dataframe called Gr1.
b) Add a column called RollNo with the following data:[1,2,None,95,68].
c) Rearrange the columns as RollNo,Name, and Grades.
d) Drop the column(i.e. Grade)by name.
e) Delete the 2rd and 3th rows.
Q.2 Write a code to plot a bar graph using following details: (3)
City Happiness_Index_Male Happiness_Index_Female
Delhi 60 30
Beijing 40 60
Washington 70 70
Tokyo 65 55
Moscow 85 75
Q.3 Consider a table SALESMAN with the following data:
SNO SNAME SALARY BONUS DATE OF JOIN
A01 Beena Mehta 30000 45 13-03-2018
A02 K. L. Sahay 50000 25 18-03-2017
B03 Nisha Thakkar 30000 35 29-10-2019
B04 Leela Yadav 80000 NULL 31-12-2018
C05 Gautam Gola 20000 12 23-01-1989
C06 Trapti Garg 70000 NULL 15-06-1987
D07 Neena Sharma 50000 27 18-03-1999
Write SQL queries using SQL functions to perform the following operations: (7)
i. Write a query to create a database name(SALESMAN).
ii. Write a query to create table SALESMAN with suitable datatypes.
iii. Write a query to insert 1st row data from SALESMAN table.
iv. Write a query to delete the SNO(i.e.D07).
v. Display salesman name and bonus after rounding off to zero decimal places.
vi. Display the position of occurrence of the string “ta” in salesman names.
vii. To add a column feedback with suitable datatype.