Ssce Board Ip Sample Question Paper
Ssce Board Ip Sample Question Paper
1) Write a program to create a Series using a dictionary which stores number of students
in each section [Ex: 12A - 25, 12B - 27, 12C - 28, 12D - 23, 12E - 30] 3M
2) Write a program to plot a bar chart for the medals won by top four countries. Give
appropriate axes labels, chart title and legend. Make sure that bars are separately visible. 5M
3)
a) Create the table STUDENT given below with appropriate datatype and constraints
and insert the records as it is 2M
Table: Student
Write the given Queries/Commands based on the table Student given above
d) Write a query to update all the records in above table with percentage=Aggregate/5 1M
e) Write a query to display the names of the students whose aggregate is 410 or 434 or 456. 1M
f) Write a query to display the names, gender and aggregate of all the students in the
ascending order of gender and descending order of aggregate. 1M
Time : 3 Hours SET : 2 Maximum Marks : 30
1) Write a program to create a Series object that stores the Donation amount as the values and the
stream names as the indexes as given below and print it.
2) Write a program to plot a bar chart from the medals won by Australia. In the same chart,
plot medals won by India too based on the table given below along with axes labels,
chart title and legend. 4M
Country Gold Silver Bronze Total
Australia 80 59 59 198
India 26 20 20 66
3)
a) Create the table Bank as per the specification given below 1M
Table: Bank
Column Name AccountNo CustName Gender Address
Data Type Integer Varchar Char Varchar
Length 30 1 30
Nulls/Unique Not null
Keys Primary key
c) Add one column mobileno of datatype varchar and size 12 to the table Bank. 1M
e) Write a command to change the column name from Loc to Location and datatype
Varchar(15) to Varchar(20 in the table Department. 1M
f) Write a command to remove the primary key constraint from Bank Table 1M
g) Write a query to insert one record in bank table and one record in Department table. 1M
Time : 3 Hours SET : 3 Maximum Marks : 30
1) Write the program to generate the DataFrame given below. And then execute any four attributes /
properties of a DataFrame 4M
Weight Name Gender
0 20.0 Nehal Male
1 36.0 Sameera Female
2 NaN Ajay Male
2) Write a program to create the Series given below. Sort the series based on
(a) values ascending and descending
(b) indexes ascending and descending 4M
CSK Ruturaj Gaikwad
GT Shubham Gill
MI Hardik Pandya
SRH Pat Cummins
RR Sanju Samson
3 a) Create the table EMPLOYEE given below with appropriate datatype and constraints and
insert the records as it is. 2M
Table: Employee
ENO ENAME SALARY ZONE AGE GRADE DEPT
1 Mona 70000 East 40 A 10
2 Mukhtar 71000 West 45 B 20
3 Nalini 60000 East 26 A 10
4 Sameer 65000 South 36 A 20
5 Surya 58000 North 30 B 30
6 Sanjay 38000 East 27 C 30
7 Reena 57500 North 31 A 20
b) Write a query to display Eno, Ename, Salary, Age of all the employees whose age is in
between 26 and 40 (both values inclusive) 1M
c) Write a query to display Grade, Maximum salary, Minimum salary, Total salary
and Average salary according to Grade wise. 1M
d) Write a query to display Zone name, Zone wise total salary and Count of number of
employees where Count of no of employees working in the zone is two or more than two. 1M
e) Write a query to change the ename to “Tina” and age to 30 where eno is 7 1M
f) Write a query to display Ename, Salary, Zone and Income Tax. (Note: Income Tax to be
calculated as 30% of salary) of all the employees with appropriate column headings 1M
Time : 3 Hours SET : 4 Maximum Marks: 30
2) Write the commands to perform the following tasks based on the DataFrame created above. 5M
a) Change Vishal : Section 12D
b) Drop Column Sameer
c) Delete Row Marks
d) Rename the index AgeA, LocationL, SectionS (permanently)
e) Rename the column Akash Sanjay, Vishal Ramesh, Sameer Vikram (temporarily)
3)
a) Create the table LIBRARY given below with appropriate datatype and constraints and
insert the records as it is. 2M
Table : Library
b) Write a query to display list of all the books with price more than 150 in ascending
order of quantity. 1M
c) Write a query to display title and 3 characters from 3rd place from the column title. 1M
d) Write a query to display publisher name, publisher wise total stock values (Quantity*Price) 1M
2) Write the commands to perform the following tasks based on the DataFrame created above. 4M
a) To display top two rows (or) bottom two rows
b) Write the command to extract the hospitals in Mumbai using row numeric index
c) Change the complete row values of Kolkata 500
d) Write the command to change all the values of DataFrame to 0
3)
a) Create the table EMP given below with appropriate datatype and constraints and
insert the records as it is. 2M
b) Write a query to display the name of those employees whose month in DOB is October. 1M
d) Write a query to display the Ename, Department name in lower case of those employees
whose Ename contains “n” at last position. 1M
e) Write a query to display the records in the descending order of department and
ascending order of DOJ. 1M
2) Write the commands to perform the following tasks based on the DataFrame created above. 4M
a) To display two columns values (ex: Hospitals, Schools)
b) To get the following output
Population Hospitals
Chennai 2000 200
Delhi 3000 300
(or)
Any 2 Rows and 2 Columns
c) Extract the same output which you got in b) using iloc command
d) Add the column Parks with value =100
3)
a) Create the table STOCK given below with appropriate datatype and constraints and
insert the records as it is. 2M
Table: Stock
Itcode Itname Dcode Qty Unitprice
444 Drawing Copy 101 10 21.75
445 Sharpener Camlin 102 25 13.50
450 Eraser Natraj 101 40 6.25
452 Gel Pen Montex 103 80 75.10
457 Geometry Box 102 65 65.75
467 Parker Premium 103 40 109.50
b) Write a query to display the itcode, itname, dcode from stock table for items whose
itname does not contains ‘a’ in it. 1M
c) Write a query to count the number of records whose unit price is more than 60 1M