0% found this document useful (0 votes)
3 views5 pages

Practical Question Paper 1 1

The document outlines exam questions for the subject Informatics Practices (065) scheduled for January 15, 2025, with a maximum mark of 30. It includes practical tasks involving Python programming with Pandas and SQL commands for creating and manipulating tables across four sets (A, B, C, D). Each set contains questions that require coding and data handling skills, along with practical work and viva-voce components.

Uploaded by

Khushiii TSG
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views5 pages

Practical Question Paper 1 1

The document outlines exam questions for the subject Informatics Practices (065) scheduled for January 15, 2025, with a maximum mark of 30. It includes practical tasks involving Python programming with Pandas and SQL commands for creating and manipulating tables across four sets (A, B, C, D). Each set contains questions that require coding and data handling skills, along with practical work and viva-voce components.

Uploaded by

Khushiii TSG
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

SET-A

Subject-Informatics Practices (065)


Date of Exam-15-Jan-2025
M.M:30 Time:3 Hrs
Q.No.1 Consider the following Series ‘s2’:
Index value
a 105
b 210
c NaN
d 180
e 255
Write a Python program using Pandas to create the series, where ‘a’, ‘b’, ‘c’,
‘d’, and ‘e’ are considered as indexes of the series. (8 marks)
Answer the following:
I. Display the last two elements of S2.
II. Count the total number of NaN values in S2.
III. Display the elements of S2 in ascending order.
IV. Display the first 3 elements of the series S2.
V. Check if the Series is empty or not.

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

Perform the following operations:


I. Add a new column Grade with values: [‘B+’, ‘A’, ‘C+’, ‘B’, ‘B+’].
II. Display rows where Marks are greater than 80.
III. Delete the 2nd row (index 1).
IV. Create a bar chart to display Marks for each Subject.
Q2. Write SQL commands to create the following table EMPLOYEE:
Table: EMPLOYEE
Empid name Salary Dept
101 Rahul 45000 HR
102 Priya 55000 IT
103 Sameer 60000 Finance
104 Meenal 47000 HR
105 Raj 52000 IT
Answer the following:
I. Insert values in the table
II. Display the average salary of each department.
III. Count the total number of employees in the IT department.
IV. Display all records where salary is above 50000.
V. Show the Structure of the table.
VI. Display all records sorted in descending order of Salary
VII. Display name of IT department.
3. Practical Work.
4. Project Work.
5. Viva-Voce
SET-C
Subject-Informatics Practices (065)
Date of Exam-15-Jan-2025
M.M:30 Time:3 Hrs
Q1. Write Python code to create a DataFrame with the following data:

Item Price Quantity


Pen 10 100
Pencil 5 150
Eraser 3 200
Notebook 50 75
Bag 500 20

Perform the following operations:


I. Add a new column Total as Price * Quantity.
II. Display all items where the quantity is greater than 50.
III. Delete the row with Item as ‘Bag’.
IV. Create a bar chart to display Price for each Item.

Q2. Write SQL commands to create the following table PRODUCT:


Table: PRODUCT
Prodid Prodname Price Stock
101 Pen 10 500
012 Pencil 5 1000
103 Eraser 3 800
104 Notebook 50 200
105 bag 500 50
Answer the following:
I. Write SQL query to Insert values in the table.
II. Display the total stock of all products.
III. Show the details of products priced above 20.
IV. Count the total number of products with stock greater than 100.
V. Display the first three letters of ProdName and their Price.
VI. Display all product details sorted in ascending order of Stock.
VII. Display names and Product ID of all the items
3. Practical Work.
4. Project Work.
5.Viva-Voce.

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.

Q2. Write SQL commands to create the following table CUSTOMER:


Table: CUSTOMER

Custid Custname City Purchases


101 Aman Delhi 5
102 Riya Mumbai 8
103 Ankit Kolkata 3
104 Neha Chennai 7
105 Kabir Pune 4
Answer the following:
I. Write SQL query to insert data in the table.
II. Display the total number of purchases made by all customers.
III. Show the details of customers from Mumbai and Delhi.
IV. Count the total number of customers with more than 4 purchases.
V. Display the structure and all records of the table.
VI. Display all customer details sorted in descending order of Purchases.
VII. Display name of customer belongs to Pune

3.Practical Work.
4. project Work.
5.Viva-voce.

You might also like