0% found this document useful (0 votes)
5 views

Practical File Questions (1)

Uploaded by

Deepesh Singh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Practical File Questions (1)

Uploaded by

Deepesh Singh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

PRACTICAL FILE- COMPUTER SCIENCE (083)

LIST OF PRACTICALS (2023-24) CLASS-XII


Q1. Write a function FACT( ) to calculate the factorial of an integer .

Q2. Write a program to perform read and write operation with .csv file.

Q3. Write a python program to search a student record in a binary file.

Q4. Write a program to check a number whether it is palindrome or not.

Q5. Write a program to count the number of vowels present in a text file.

Q6. Write a program to count number of words in a file.

Q7. Write a program to generate random numbers between 1 to 6 and print them.

Q8. Write a menu based program to perform all the operations on stack in python.

Q9. Write a function SwapNumbers( ) to swap two numbers and display the numbers before
swapping and after swapping.

Q10. Write a python program to read student data from a binary file.

Q11. Write a program to write those lines which have the character 'p' from one text file to
another text file.

Q12. Write a python program to write student data in a binary file.

Q13. Write a program to compute GCD and LCM of two numbers using functions.

Q14. Write a program to pass an integer list as stack to a function and push only those elements
in the stack which are divisible by 7.

Q15. Write a program in python to check a number whether it is prime or not.

16) Write a menu-driven python program to implement stack operation.


17) Write a program to implement a stack for the employee details (empno, name).
18) Write a python program to check whether a string is a palindrome or not using stack.
19) Write a python program to connect with database and store record and display records.
20) Write a python program to connect with database and update the record of entered data.
21) Write a python program to connect with database and search record and display record, if
not found display appropriate message.
22) Write a python program to connect with database and delete the record.
23) SQL commands: Consider the following MOVIE table and write the SQL queries based on it.

1. Write SQL query to create a database.


2. Write SQL query to open database.
3. Write SQL query to create above Table MOVIE in created database.
4. Write SQL query to show the structure of table MOVIE.
5. Write SQL query to insert above records in the table.
6. Write SQL query to display all the records from table.
7. Write SQL query to display the type of movies.
8. Write SQL query to display movieid, moviename, total_earning by showing the
business done by the movies. Calculate the business done by movie using the sum
of productioncost and businesscost.
9. Write SQL query to display movieid, moviename and productioncost for all movies
with productioncost greater than 150000 and less than 1000000.
10. Write SQL query to display the movie according to type action and romance.
11. Write SQL query to display the list of movies which are going to release in
February, 2022.
12. Write SQL query to delete records whose movieid=M004.
13. Write SQL query to add a new column Director_Name in the table.
14. Write Queries for Aggregate functions- SUM( ), AVG( ), MIN( ), MAX( ),
COUNT( )
15. Write Queries to show Group by, Having, Order by.
16. Write SQL query to delete entire table IF EXISTING.

You might also like