COMPUTER SCIENCE Class 12 Practical
COMPUTER SCIENCE Class 12 Practical
Lab file
Session-2024-25
OUTPUT
1. INPUT
OUTPUT
2. INPUT
OUTPUT
3. INPUT
OUTPUT
4. INPUT
OUTPUT
5. INPUT
OUTPUT
6. INPUT
OUTPUT
7. INPUT
OUTPUT
8. INPUT
OUTPUT
9. INPUT
OUTPUT
10. INPUT
OUTPUT
11. INPUT
OUTPUT
12. INPUT
OUTPUT
13. INPUT
OUTPUT
14. INPUT
OUTPUT
15. INPUT
OUTPUT
16. INPUT
OUTPUT
17. INPUT
OUTPUT
18. INPUT
OUTPUT
19. INPUT
OUTPUT
20. INPUT
OUTPUT
21. INPUT
OUTPUT
22. INPUT
OUTPUT
23. INPUT
OUTPUT
24. INPUT
OUTPUT
25. INPUT
OUTPUT
26. INPUT
OUTPUT
27. INPUT
OUTPUT
28. INPUT
OUTPUT
29. INPUT
OUTPUT
30. INPUT
OUTPUT
31. INPUT
OUTPUT
32. INPUT
OUTPUT
33. INPUT
OUTPUT
34. INPUT
OUTPUT
35. INPUT
OUTPUT
36. INPUT
OUTPUT
37. INPUT
OUTPUT
38. INPUT
OUTPUT
43.
two numbers and returns the result of all arithmetic operations on these numbers.
Input
Output
44. calculate simple interest using a function interest() that can receive principal amount, time
and rate and returns calculated simple interest. Do specify default values for rate and time as
10% and 2 years respectively.
Input
Output
45.Read a text file line by line and display each word separated by a #.
input
Output
46.Display the size of fie is bytes
input
Output
Output
48.Function in oython that counts the no. of ‘me’ or ‘my’ words that present of in a text file
(story.txt)
Input
Output
49.Program to get student data, roll no., name and marks from a user and get onto a binary
file.
Input
Output
50.Create a csv file roll no., name, marks obtained data from user and write into the file
Input
Output
51. program that defines and calls the following user defined function:
add()-> to accept and add data of an employee to a csv file ‘record.csv’. Each record consist
of a list with field elements as empid, name and mobile to store employee id , employee
name and employee salary respectively.
Counter()->to count the number of records present in the csv file named ‘record.csv’.
input
Output
TABLE: BRAND
BID BRAND
M02 Dant Kanti
M03 Medimix
M04 Pepsodent
M05 Dove
a) Display product name and brand name from the tables PRODUCT and BRAND.