set1-6
set1-6
set1-6
1 b) Write program in python to create a line chart with the given data and also set the name to x-axis, y-
axis and title. Also save graph name as simple.pdf. (5M)
ename = ['Hari', 'Riya', 'Chandhan', 'Joe', 'Mita']
sal = [4000, 6000, 5000, 3500, 8000]
1 c) Consider the following two tables Employee and Department, and write SQL commands to the
following: (7M)
i. Create Department table as per above given data by applying primary key
on deptno column.
ii. Create Employee table as per above given data by applying primary on eno
column and foreign key on deptno column with reference to Department
table deptno column.
iii. Insert above data into Department table.
iv. Insert above data into Employee table.
v. Display Employee names and their Department name.
vi. Display Employee and their HOD name.
vii. Display Employee and their HOD name who are working in CS department.
SET-2
ROXX 15.2
PUNCH 18.8
CRETA 17.4
XUV700 17.0
NEXON 17.4
2 b) Write program in python to create a line chart with the given data and also set the name
to x-axis, y-axis and title. Also save graph name as simple.pdf. (5M)
years=[2020,2021,2022,2023,2024]
pass=[95,94,900,95,98]
2c) Consider the following two tables Employee and Department, and write SQL commands to the
following: (7M)
i. Create Department table as per above given data by applying primary key
on deptno column.
ii. Create Employee table as per above given data by applying primary on eno
column and foreign key on deptno column with reference to Department
table deptno column.
iii. Insert above data into Department table.
iv. Insert above data into Employee table.
v. Display Employee names and their Department name.
vi. Display Employee and their HOD name.
vii. Display Employee and their HOD name who are working in CS department.
SET-3
3a) Consider the following Series Class and answer the questions. 3M
A 45
B 36
C 27
D 35
(i) Write python code to create above series Class using list
(ii) Write a statement to delete element whose index is ‘B’
(iii) Write a statement to add one element with 54 as value and index as ‘E’
3b) Write program in python to create a line chart with the given data and also set the name
to x-axis, y- axis and title. Also save graph as simple.pdf. 5M
ename=[‘Hari’,’Riya’,’Chandhan’,’Joe’,’Mita’]
sal=[4000,6000,5000,3500,8000]
3c) Consider the following two tables Employee and Department, and write SQL commands to
the following.
7M
i. Create Department table as per above given data by applying primary key on Deptno
column.
ii. Create Employee table as per above given data by applying primary on eno column and
foreign key on deptno column with reference to Department table deptno column.
iii. Insert above data into Department table.
iv. Insert above data into Employee table.
v. Display Employee names and their Department name.
vi. Display Employee and their HOD name.
vii. Display Employee and their HOD name who are working in CS department.
SET - 4
TableName:STUDENT
ROLLNO NAME DOB CITY STREAM FEE
1 Srinath 2015-11-05 Bangalore Science 2344.75
2 Supriya 2016-09-25 Nagpur Humanities 5454.50
3 Chandhan 2018-12-18 Delhi NCR Arts 1234.56
4 Giri 2012-12-12 Hyderabad Science 8746.89
5 Kaveri 2015-02-18 Chennai Science 8746.89
5b) Write program in python to create a line chart with the given data and also set the name to
x-axis, y- axis and title. Also save graph name as simple.pdf. 5M
ename=[‘Hari’,’Riya’,’Chandhan’,’Joe’,’Mita’]
sal=[4000,6000,5000,3500,8000]
5c) Consider the following table and write SQL commands for all the questions 7M
Table Name: STUDENT
ROLLNO NAME DOB CITY STREAM FEE
1 Srinath 2015-11-05 Bangalore Science 2344.75
2 Supriya 2016-09-25 Nagpur Humanities 5454.50
3 Chandhan 2018-12-18 Delhi NCR Arts 1234.56
4 Giri 2012-12-12 Hyderabad Science 8746.89
5 Kaveri 2015-02-18 Chennai Science 8746.89
6.b) Write program in python to create a bar chart that represents pass percentage of your
school from 2020 to 2024(including both the years) and also set the name to x-axis, y-axis
and title. Also save graph as simple.pdf. 5M
years=[2020,2021,2022,2023,2024]
pass=[95,94,900,95,98]
6.c) Consider the following table and write SQL commands for all the questions 7M
Table Name: STUDENT
ROLLNO NAME DOB CITY STREAM FEE
1 Srinath 2015-11-05 Bangalore Science 2344.75
2 Supriya 2016-09-25 Nagpur Humanities 5454.50
3 Chandhan 2018-12-18 Delhi NCR Arts 1234.56
4 Giri 2012-12-12 Hyderabad Science 8746.89
5 Kaveri 2015-02-18 Chennai Science 8746.89