Practical Question Paper 1 1
Practical Question Paper 1 1
Q2. Write SQL commands to create the following table STAFF: (7 Marks)
Table: STAFF
Staffed staffname Salary Designation
201 Arjun Sharma 45000 Teacher
202 Meena Rai 70000 Principal
203 Ravi Gupta 38000 Clerk
204 Priya Mishra 50000 Teacher
205 Rajesh Bansal 55000 Accountant
Answer the following:
I. Insert valuea in the table.
II. Display the highest salary among all staff.
III. Count the number of Teachers in the table.
IV. Display the names and designations in descending order of Salary.
V. Display the total salary of all staff whose designation is ‘Teacher’.
VI. Display the first three letters of StaffName and their Designation.
VII. Display the lowest salary among all staff.
3. Practical Work.
4.Project Work. 5. viva-
voce
SET -B
Subject-Informatics Practices (065)
Date of Exam-15-Jan-2025
M.M:30 Time:3 Hrs
Q1.Write a Python code to create a DataFrame with the following data: (8 )
Student Subject Marks
Rahul Math 88
Kavya Science 92
Rohan English 75
Tia Math 81
Aditi Science 85
SET-D
Subject-Informatics Practices (065)
Date of Exam-15-Jan-2025
M.M:30 Time:3 Hrs
Q1. Consider the following Series, “S2”:
Index value
J 79
K 80
L NaN
M 280
N 129
Write a Python program using Pandas to create the series, where ‘J’, ‘K’, ‘L’,
‘M’, and ‘N’ are considered as indexes of the series.
Answer the following:
I. Display the first 5 elements of the series.
II. Count the total number of NaN values in S2.
III. Display the elements of S2 in descending order.
IV. Display the 3rd index value of S2.
V. Check if the Series is empty or not.
3.Practical Work.
4. project Work.
5.Viva-voce.