Professional Documents
Culture Documents
CS Record Term 2
CS Record Term 2
NACHARAM
Term II - PRACTICAL RECORD PROGRAMS
SUB: COMPUTER SCIENCE CLASS: XII 2022-23
11. Read a text file line by line and display each word separated by a #.
13. Remove all the lines that contain the character 'a' in a file and write it to another file.
14. Create a binary file with name and roll no. Search for a given roll number and display the
name, if not found display appropriate message.
15. Write a program to read a file and print the contents of the file along with the number of
lines which are starting with ‘A’.
16. Write a program to create a binary file with roll number, name and marks. Input a roll
number and update the marks.
17. Create a binary file with name and roll no. Search for a given roll number and display the
name, if not found display appropriate message.
18. Create a CSV file by entering user id and password, read and search the password for given
user id
19. Write a python program to implement a stack (push, pop, peek, display) using list
Data to be Entered
24. Write SQL Query to create the tables CARDEN and CUSTOMER and write given SQL
commands.
Table: CARDEN
i. Write SQL commands to create the above tables and insert the records in it as
given above
ii. To display the names of all the silver coloured cars
iii. To display name of the car, make and capacity of cars in descending order of
their seating capacity
iv. To display the highest charges at which a vehicle can be hired from CARDEN
v. To display the customer name and the corresponding name of the cars hired by
them
vi. To count and display colour from the table carden
vii. Update the record cname Raj Kumar where code=1002
viii. Add a new column CTYPE into the table customer