Practical File CS
Practical File CS
GLOBAL SCHOOL
COMPUTER SCIENCE
SUBJECTCODE-083
AISSCE 2024-25
CLASS – XII A
KANUSHKA DUA
SUBMITTED To–Ms. Deepti Dua
1
ACKNOWLEDGMENT
I would like to express our special thanks of gratitude to my
Computer Science teacher, Ms. Deepti Dua for guidance and the
valuable support in making this practical file. I am also grateful
to our principal ma’am, Mrs. Reena Mathur for her keen
interest, encouragement and the facilities provided to me during
the course of this file. During the course of the file I came to
learn about so many new things. I would like to thank all
those who helped me directly or indirectly towards the
completion of this file.
With Sincere Thanks,
-KANUSHKA DUA
CERTIFICATE
Output:
Program 2: Write a Program to find factorial of the entered number.
Output:
Output:
Program 4: Write a Program to enter the string and to check if it’s palindrome
or not using loop.
Output:
Program 5: Remove all the lines that contain the character “a” in a file and write it
into another file.
Program 6 Write a function in Python to accept a tuple of 8 integers and divide all
the even elements by 2 and multiply all the odd elements by 7 but display only those
elements which consists of 2 digits.
Program 7 Write a to print and count total no. of lines which start from ‘A’.
Program 8 Write a program to read lines from fil.txt and display these words
which are less than 4 characters.
Output:
Program 9 Write a program to count the word this and these and the words which
end with the letter e.
Output:
Program 10 Read a text file and display the number of vowels / consonants /
uppercase / lowercase characters in the file.
Output:
Program 11 Create a binary file with roll no., name and marks and search for the
records where marks are greater than 80.
Program 12 Write a program to write and read the records of student in CSV file.
Output:
Program 13 Write a python program to implement a stack using a list data
structure.
Query 1 show databases;
Query 12 Display students with subject ‘Physics’ and ‘Computer Science’ using IN
operator.
Query 13 Display students with subject other than ‘Physics’ and ‘Computer Science’
using IN operator.
Query 14 Cross Join