0% found this document useful (0 votes)
12 views67 pages

Practical File

The document outlines a computer science practical project by Alapan Dey for the AISSCE 2025, including acknowledgments and a certificate of authenticity. It features an index of programming tasks covering various topics such as arithmetic operations, number theory, data structures, file handling, and database management using Python. The project aims to bridge theoretical knowledge with practical application through a series of programming exercises.

Uploaded by

Alapan Dey
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)
12 views67 pages

Practical File

The document outlines a computer science practical project by Alapan Dey for the AISSCE 2025, including acknowledgments and a certificate of authenticity. It features an index of programming tasks covering various topics such as arithmetic operations, number theory, data structures, file handling, and database management using Python. The project aims to bridge theoretical knowledge with practical application through a series of programming exercises.

Uploaded by

Alapan Dey
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/ 67

ADITYA ACADEMY

SECONDARY

AISSCE-2025

COMPUTER SCIENCE PRACTICAL

NAME : ALAPAN DEY


CLASS : XII
BOARDS’S ROLL NO.: 12690891
YEAR: 2024-2025
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 Mr.
Alapan Dey of Class XII session 2024-2025 in
partial fulfilment of CBSE AISSCE Examination
2024 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
Program to enter two numbers and print the arithmetic
1. operation like +,-,*,**,/,// and %.

Write a program to find whether an inputted number is


2. perfect or not.

Write a program to check if the entered number is


3. Armstrong number or not.

4. Write a program to find factorial of the entered number.

Write a Program to enter the number of terms and to print


5. the Fibonacci series.

Write a program to enter the string and to check if it's


6. palindrome or not using loop.

7. Recursively find the factorial of a natural number.

8. Read a file line by line and print it.

Write a python program to implement a stack using a list


9. data structure.

10. 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.

11. 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 list of the corresponding
position list 1.
12. 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.

13. 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.

14. 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’}.

15. Read a text file line by line and display each word separated
by a #.

16. Program to write roll no, name and marks of a student in a


data file Marks.dat.

17. Program to read and display contents of file Marks.dat.

18. Program to read and display those lines from file that starts
with alphabet ‘T’.

19. Program to write data in CSV file student.csv.

20. Program to read and display data from CSV file student.csv.

Create a student table and insert data. Implement the


21. 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.

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.

Showing the average marks of the subjects with Python


32. Connector.

1. Program to enter two numbers and print the


arithmetic operation like +,-,*,**,/,// and %.
OUTPUT:
OUTPUT:

2. Write a program to find whether an inputted


number is perfect or not.
OUTPUT:

3. Write a program to check if the entered number is


Armstrong number or not.
OUTPUT:

4. Write a program to find factorial of the entered


number.
OUTPUT:

5. Write a Program to enter the number of terms


and to print the Fibonacci series.
OUTPUT:

6. Write a program to enter the string and to check if


it's palindrome or not using loop.
7. Recursively find the factorial of a natural number.
OUTPUT:
8. Read a file line by line and print it.
Assuming we have this following file, locate at the same place as
Python:
OUTPUT:
9. Write a python program to implement a stack
using a list data structure.
OUTPUT:
10. 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.
OUTPUT:
11. 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 list of the corresponding position list 1.
OUTPUT:
12. 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.
OUTPUT:
13. 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.
OUTPUT:
14. 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’}.
OUTPUT:
15. Read a text file line by line and display each word
separated by a #.
Assuming we have this following file, locate at the same place as
Python:
OUTPUT:
16. Program to write roll no, name and marks of a
student in a data file Marks.dat.
OUTPUT:
17. Program to read and display contents of file
Marks.dat.
OUTPUT:
18. Program to read and display those lines from file
that starts with alphabet ‘T’.
Assuming we have this following file, locate at the same place as
Python:
OUTPUT:
19. Program to write data in CSV file student.csv.
OUTPUT:
20. Program to read and display data from CSV file
student.csv.
OUTPUT:
Q. Create a student table and insert data. Implement
the following commands on the student table.
OUTPUT:
21.
ALTER table to add new attributes / modify data
type / drop attribute.
22.

UPDATE table to modify data.


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

DELETE to remove tuple(s).


26.

GROUP BY and find the max, min, sum count and


average.
27.
Q. Create a student table and insert data. Implement
the following commands on the student table.
26. Inserting records into student with Python
Connector.
OUTPUT:
Modified database after adding records.
27. Showing all the records from student with
Python Connector.
OUTPUT:
28. Deleting records into student with Python
Connector.
OUTPUT:

Modified database after deleting records:

29. Updating records into student with Python


Connector.
OUTPUT:

Modified Database after updating records:


30. Showing the average marks of the subjects with
Python Connector.
OUTPUT:

You might also like