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

ATRIJO PAL CS PRAC

The document outlines a project for the AISSCE 2025 by Anish Manna Pal, including acknowledgments, a certificate of authenticity, and an index of Python programming tasks. The tasks cover various programming concepts such as string manipulation, file handling, data structures, and database operations. Each task is accompanied by a program and output section, demonstrating practical applications of the learned concepts.

Uploaded by

apy4205
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)
4 views

ATRIJO PAL CS PRAC

The document outlines a project for the AISSCE 2025 by Anish Manna Pal, including acknowledgments, a certificate of authenticity, and an index of Python programming tasks. The tasks cover various programming concepts such as string manipulation, file handling, data structures, and database operations. Each task is accompanied by a program and output section, demonstrating practical applications of the learned concepts.

Uploaded by

apy4205
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/ 70

Aditya Academy Secondary

AISSCE – 2025

Name: ATRIJO
Anish Manna
PAL
Class: XII
XII
Board Roll No.:
Year: 2024-25
ACKNOWLEDGEMENT
Firstly, I would like to extend my gratitude to
our computer science teacher for his constant
support and guidance.
He helped us navigate through the difficult
parts of the project and helped us complete the
project in the limited time.
This project has been a great source of learning
and it was a chance to bring our theoretical
knowledge to the real world.
I would like to thank all the teachers who gave
me this wonderful opportunity to learn so many
wonderful things.
Finally, I would also like to thank my parents
and my friends, who have always been there to
support me, and have helped me a lot to finalise
this project within the stipulated time.

_________________
Student’s Signature
Certificate
This is to certify that the project entitled
Computer Science is a bona fide work done by
Master Anish
Atrijo Manna
Pal of Class XII session
2024-2025 in partial fulfilment of CBSE
AISSCE Examination 2025 and has not been
submitted for any other examination and does
not form a part of any other course undergone
by the candidate.

________________ ________________
Teacher’s Signature External’s Signature
INDEX
S. No. Topic T. Sign
1. Write a python program to reverse a string.

2. Write a python program that accepts a string and calculates the number of
UPPER-CASE letters and lower-case letters.

3. Write a python program to find simple interest using a user defined function
with parameters and with return value.

4. Write a program to find whether an inputted number is perfect or not.

5. Write a program to check if the entered number is Armstrong number or not.

6. Write a Program to enter the number of terms and to print the Fibonacci series.

7. Write a function for a list pairs=[[2,5],[4,2],[9,8],[12,10]], count the numbers of


pairs [a,b] such that both a and b are even.

8. WAP using function to generate a new list from two existing lists of same
lengths. The new list must contain the sum value of elements of those two lists
of the corresponding position list 1.

9. WAP using function to rotate the element of a list in such a way that first
element goes to the second position 2nd to 3rd, 3rd to 4th etc the element in
the last position will move to the first position.

10. WAP using function to create a 3rd dictionary from two dictionary having some
common keys in a way so that the values of common keys must add it in the 3rd
dictionary.

11. WAP using function to create a dictionary D1 = {1 : ‘One’, 2 : ‘Two’, 3 : ‘Three’, 4


: ‘Four’, 5 : ‘Five’} and also a second dictionary from D1 with opposite mapping
dictionary D2 = {4 : ‘Four’, 3 : ‘Three’, 2 : ‘Two’, 1 : ‘One’}.

12. Program to write roll no, name and marks of a student in a data file Marks.dat.
S. No. Topic T. Sign
13. Given a file ‘sen.txt’ write a function atoesidp() to display the file after replacing
‘a’ with ‘e’ program

14. Write a function stats() that accepts a filename and reports the files longest
line.

15. Take a sample text file and find the most commonly occurring word. also, list
the frequencies of words in the text file.

16. A binary file “BOOK.DAT” has structure [bookno, book_name, author, price].
write a user defined function createfile() to input data for a record and add to
“BOOK.DAT” program

17. A binary file “EMPLOYEE.DAT” has structure (empid, empname, salary). write a
function to display number of employees having salary more than 20000.

18. Write a program in python that defines and calls the following user defined
functions:
add() . to accept and add data of an employee to a csv file “furdata.csv”. Each
record consists of a list with field elements fid , fname and fprice to store
furniture id , furniture name and furniture price respectively.

19. Write a program in python that defines and calls the following user
defined functions: Search(). To display the records of the furniture whose price
is more than 2000 from FURDATA.CSV program

20. Write a python program to implement a stack using a list data structure.

21. Create a student table and insert data. Implement the following commands on
the student table.

22. ALTER table to add new attributes / modify data type / drop attribute.

23. UPDATE table to modify data.

24. ORDER BY to display data in ascending / descending order.


S. No. Topic T. Sign
25. DELETE to remove tuple(s).

26. GROUP BY and find the max, min, sum count and average.

27. Create a student table and insert data. Implement the following commands on
the student table.

28. Inserting records into student with Python Connector.

29. Showing all the records from student with Python Connector.

30. Deleting records into student with Python Connector.

31. Updating records into student with Python Connector.

32. Showing the average marks of the subjects with Python Connector.
1) Write a python program to reverse a string.
PROGRAM:
OUTPUT:
2) Write a python program that accepts a string
and calculates the number of UPPER-CASE letters
and lower-case letters.
PROGRAM:
OUTPUT:

Anurag
3) Write a python program to find simple interest
using a user defined function with parameters and
with return value.
PROGRAM:
OUTPUT:

Anurag
4) Write a program to find whether an inputted
number is perfect or not.

PROGRAM:
OUTPUT:

Anurag Naskar

Anurag Naskar
5) Write a program to check if the entered number is
Armstrong number or not.

PROGRAM:
OUTPUT:
6) Write a Program to enter the number of terms
and to print the Fibonacci series.
OUTPUT:
7) Write a function for a list
pairs=[[2,5],[4,2],[9,8],[12,10]], count the numbers of
pairs [a,b] such that both a and b are even.

PROGRAM:
OUTPUT:
8) WAP using function to generate a new list from two
existing lists of same lengths. The new list must
contain the sum value of elements of those two lists
of the corresponding position list 1.

PROGRAM:
OUTPUT:
9) WAP using function to rotate the element of a list
in such a way that first element goes to the second
position 2nd to 3rd, 3rd to 4th etc the element in
the last position will move to the first position.

PROGRAM:
OUTPUT:
10) WAP using function to create a 3rd dictionary
from two dictionary having some common keys in a
way so that the values of common keys must add it in
the 3rd dictionary.

PROGRAM:
OUTPUT:
11) WAP using function to create a dictionary D1 = {1
: ‘One’, 2 : ‘Two’, 3 : ‘Three’, 4 : ‘Four’, 5 : ‘Five’} and
also a second dictionary from D1 with opposite
mapping dictionary D2 = {4 : ‘Four’, 3 : ‘Three’, 2 :
‘Two’, 1 : ‘One’}.

PROGRAM:
OUTPUT:
12) Program to write roll no, name and marks of a
student in a data file Marks.dat.

PROGRAM:
OUTPUT:
13) Given a file ‘SEN.TXT’ write a function
atoesidp() to display the file after replacing
‘a’ with ‘e’

PROGRAM:
Anurag
FILE:
OUTPUT:

Anurag
14) Write a function stats() that accepts a filename
and reports the files longest line.
PROGRAM:
FILE:
OUTPUT:

Anurag
15) Take a sample text file and find the most
commonly occurring word. also, list the
frequencies of words in the text file.
PROGRAM:
FILE:
OUTPUT:
16) A binary file “Book.dat” has structure
[BookNo, Book_name, Author, Price]. write a user
defined function createfile() to input data for a
record and add to “Book.dat”
PROGRAM:
THE FILE CREATED CAN’T BE DISPLAYED AS IT IS
BINARY FILE OUTPUT:
17) A binary file “EMPLOYEE.dat” has
structure (empid, empname, salary). write a
function to display number of employees having
salary more than 20000.

PROGRAM:
OUTPUT:

Anurag
18)Write a program in python that defines and
calls the following user defined functions:
add() . to accept and add data of an
employee to a csv file “Furdata.csv”. Each
record consists of a list with field
elements fid , fname and fprice to store furniture id ,
furniture name and furniture price respectively.
PROGRAM:
FILE CREATED:
OUTPUT:

Anurag
19) Write a program in python that
defines and calls the following user
defined functions: Search(). To display the records of
the furniture whose price is more than 2000 from
Furdata.csv
PROGRAM:
OUTPUT:

Anurag
20) Write a python program to implement a stack using
a list data structure.

PROGRAM:
OUTPUT:
Q. Create a student table and insert data. Implement
the following commands on the student table.
21) ALTER table to add new attributes / modify data
type / drop attribute.
22) UPDATE table to modify data.
23) ORDER BY to display data in ascending / descending
order.
24) DELETE to remove tuple(s).
25) GROUP BY and find the max, min, sum count and
average.
Q. Create a student table and insert data. Implement
the following commands on the student table.
26) Inserting records into student with Python
Connector.

anuragnaskar
OUTPUT:
Anurag Naskar
Modified database after adding records.
27) Showing all the records from student with
Python Connector.

PROGRAM:

anuragnaskar
OUTPUT:
28) Deleting records into student with Python
Connector.

anuragnaskar
OUTPUT:
Modified database after deleting records:
29) Updating records into student with Python
Connector.

anuragnaskar
OUTPUT:

Anurag Naskar
Modified Database after updating records:
30) Showing the average marks of the subjects
with Python Connector.

anuragnaskar
OUTPUT:

You might also like