0% found this document useful (0 votes)
69 views2 pages

C - Sc. - Practical File For 2022 - HY

The document provides a board practical file for the computer science subject for class 12. It includes 20 practical questions covering topics like file handling in Python, binary and CSV file operations, SQL queries to create databases and tables and perform operations like insertion, selection, updating, deletion of records. Some key tasks include creating and manipulating text, binary and CSV files to read, write and extract data from files. For SQL, tasks include creating databases and tables, inserting records, querying to display specific records based on conditions, calculating aggregates, modifying structures and data.

Uploaded by

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

C - Sc. - Practical File For 2022 - HY

The document provides a board practical file for the computer science subject for class 12. It includes 20 practical questions covering topics like file handling in Python, binary and CSV file operations, SQL queries to create databases and tables and perform operations like insertion, selection, updating, deletion of records. Some key tasks include creating and manipulating text, binary and CSV files to read, write and extract data from files. For SQL, tasks include creating databases and tables, inserting records, querying to display specific records based on conditions, calculating aggregates, modifying structures and data.

Uploaded by

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

Board Practical File for 2022-2023

Class XIl
Subject : Computer Science

1. Create a text file 'Practice.txt' and write five lines in it & then display number of alphabets,
digits and special characters present in it.
2. Read a text file ‘Practice.txt' and display all words which having four characters long.
3. Read a text file'Practice.txt' and display all the lines which are begins with vowels.
4. Develop a program to implementation of file pointer seek and tell function.
5. A binary file 'Mobile.dat' has structure [Model, Company, Price].
(i) Write a user defined function Add_Mobile() in Python to input data for N number of
mobiles and add it to a binary file ‘Mobile.dat'
(ii) Write a function Count_Company(company) in Python which accepts the company name
as parameter and counts and print the number of mobiles by the given company stored in
the binary file 'Mobile.dat’.
Also call the functions from the main segment so that program should execute successfully.
6. Create a binary file 'report.bin'with name, roll number and marks of N students. Search
for a given roll number and update the marks.
7. Develop a program to delete a record from the binary file 'report.bin', which roll number
is entered by the user.
8. A binary file 'Salary.bin' has structure [Empno,Name,Salary]
Develop a program which stores N number of data in 'Salary.bin’, calculates and display
total salary remitted to its employees and to display the number of employees who are
drawing a salary of more than 740000 per month.
9. Write a program to create a CSV file 'Emp.csv'and store empno,name andsalary. Search
any empno and display his/her name and salary. Display an appropriate message if not
found.
10. Develop a program to search for a given empno from 'Emp.csv' and update the salary
by 1000.

|
SQL
1. Create a database 'Emp_data' on the database server, show the list of databases and
Select the database you want to Use.

2. Create the following tables named ‘Dept’ and ‘Emp’ as follows with appropriate data type,
size and constraint(s).

Dept
Deptno dname Location
10 Accounts Delhi
20 Sales Mumbai
30 HRD Pune

Emp
Empno Ename Job MGR HireDate | Sal Comm deptno
101 Amar Clerk 7009 18-07-16 | 30000 NULL 20
107 Sanjay Salesman | 7124 28-05-18 | 32000 2400 30
144 Sam Manager 8133 16-12-19 | 52000 NULL 10
109 Raj Salesman | 7500 14-06-16 | 37000 3000 30
160 Mou Manager 8167 15-07-17 | 51000 NULL 20
117 Hema Clerk 2157 04-05-20 | 28000 NULL 10
150 Dilip Accountant | 7676 11-09-17 | 41000 NULL 20
133 Suraj Salesman | 8348 12-12-20 | 28000 1800 10

3. Insert five records/tuples into the table.


4. Display all the information of employees whose job is NEITHER Salesman NOR Clerk.
5. Display the details of all the employees whose Hiredate is after April 2017.
6. Display all information of Salesman and Manager in descending order salary wise.
7. List all employees whose name has starts with character ‘S’.
8. Display Name and Salary of those Employees whose Salary is in the range 40000 and
52000 ( both are inclusive).
9. Display average Salary and highest Salary of Employees for each department.
10. Display total No. of Clerk, Manager, Salesman and President along with their Average
Salary.
11. Increase the Salary of 'Clerk' by 5%.
12. Add a new column named Address. ( Take the data type and size yourself).
13. Display Ename, Job, salary and HireDate of Clerk and Salesman whose Salary is below
30000.
14. Display UNIQUE Jobs.
15. Display Job and Highest Salary of Employee of each type of Job , but only for Clerk and
Manager.
16. Display Job and Highest Salary of Employee of each type of Job, but only for Clerk,
Manager and Accountant arranged in ascending order of job.
17. Display total no. of Employees for each department.
18. Delete the column Address and verify the table structure.
19. Display Employee name, job and location of each employees.
20. Count not Null values from EPM.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy