Professional Documents
Culture Documents
PRACTICAL FILE
FOR AISSCE 2023-24 BOARD EXAMINATION
SUBJECT: COMPUTER SCIENCE (083)
SUBMITTED BY:
NAME: Adit Mishra
ROLL NUMBER: ___________________
CLASS: XII SCIENCE
CERTIFICATE
This is to certify that this practical file has been made by Adit
Mishra, a student of Kendriya Vidyalaya D.I.A.T. Girinagar,
Pune, Maharashtra studying in class XII SCIENCE. He has
completed his practical file in time under the guidance of
concerned teacher and with his own efforts. His initiative,
cooperation and participant during Computer Science 2023-24
practical classes were excellent.
OUTPUT :
AIM 2: Write a function in python which accept a number from user
to return True, if the number is a prime number else return False. Use
this function to print all prime numbers from 1 to 100.
OUTPUT:
AIM 3: Write a function in python which accept a list of marks of
students and return the minimum mark, maximum mark and the
average marks. Use the same function to test.
OUTPUT:
AIM 4: WAP to read a text file “myfile.txt” line by line and display
each word separated by a #.
Content in ‘file.txt’:
OUTPUT:
AIM 5: WAP to read a text file “myfile.txt” and display the number of
vowels/ consonants/
uppercase/ lowercase characters in the file.
File content:
Same as above .txt file
OUTPUT:
AIM 6: Remove all lines that contain the character ‘a’ in a file and
write it in another file.
File content:
OUTPUT:
AIM 8: Read a text file to print the frequency of the word ‘He’ and
‘She’ found in the file.
File content:
OUTPUT:
AIM 9: Create a binary file with name and roll number. Search for a
given roll number and display the name, if not found display
appropriate message.
OUTPUT:
AIM 10: Create a binary file with roll number, name and marks.
Input a roll number and update the marks.
OUTPUT:
AIM 11: Read a CSV file from hard disc and print all the details on
the screen.
OUTPUT:
AIM 12: Read a CSV file (containing item no, name, rate, QOH) from
hard disc and print all the items whose rate is between Rs 500 and Rs
1000.
OUTPUT:
AIM 13: Write a random number generator that generates random
numbers between 1 and 6 (simulates a dice). Throw the two dices for
10 times and print their total.
OUTPUT:
AIM 14: WAP in Python to demonstrate linear search.
OUTPUT:
AIM 15: Write a Python program to implement a stack using a list
data-structure.
For fetchone():
OUTPUT:
For fetchmany():
OUTPUT:
For fetchall():
OUTPUT:
AIM 19: WAP to connect Python with MySQL using database
connectivity and perform the following operation on data in database:
Update record in the table