CS Practicle
CS Practicle
Session[2023-2024]
Name: Naki Imam
Class: XII-A
Roll No. :
• Text File
• Binary File
• CSV File
This practical file serves as a comprehensive guide for exploring computer science concepts
and implementing them using the Python programming language. Through a series of hands
on exercises and projects, this practical file aims to enhance our understanding of computer
science principles and strengthen our programming skills. Python, a versatile and beginner-
friendly programming language, has gained immense popularity in the field of computer
science due to its simplicity, readability, and extensive libraries. It provides a Powerful toolset
for solving real-world problems and implementing various algorithms and data structures.
This chapter deals with all the concept taught in class 11 that are basic for python
language
1. Program to read & print the lines having length more than 50 in text files
5. Find the total no. of lines & total no. of words in a text file
6. Program to read & print the words having length more than 7 from text file
8. Program to make a copy file of only those lines starting with uppercase letters
Program to append employees in the record and search those employees having salary
9.
more than 15000
This chapter deals with programs libraries modules related to binary file
1. Program for writing & reading students’ record in a binary file. (METHOD-1)
2. Program for writing & reading students’ record in a binary file. (METHOD-2)
3. Program to push, pop , and display name and ID of the book in stack of book
4. Program to push,pop & display name and marks of students in stack of students
This chapter deals with the new algorithms
6. DATABASE CONNECTIVITY
‘ ’
‘ ’ ‘ ’
’
’
Initial
Entries
’
AccNo. Cust_Name Loan_Amount Installments Int_Rate Start_Date Interest
(iii) Display the count of all loan holders whose name ends with 'Sharma’.
Ans: Mysql> SELECT COUNT(*) FROM LOANS WHERE Cust_Name LIKE ‘%Sharma’;
(iv) Display the count of all loan holders whose Interest rate is Null.
Ans: Mysql> SELECT COUNT(*) FROM LOANS WHERE Int_Rate IS NULL;