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

Practical File CS

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Practical File CS

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

ADHARSHEELA

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

This is to certify that Kanushka Dua of class XII-A


has completed the Practical File during the
academic session 2024-25. This file has been
carried under the direct supervision of Mrs.
Deepti Dua.

Internal Examiner External Examiner


PYTHON
PROGRAMS
Program 1: Program to enter two numbers and print the arithmetic operations
like +,-,*, /, // and %.

Output:
Program 2: Write a Program to find factorial of the entered number.

Output:

Program 3: Write a Program to check if the entered number is Armstrong or not.

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 2 create databse

Query 3 create a table


Query 4 describe the structure of a table

Query 5 insert the records in atable

Query 6 display the records from table student


Query 7 Find records of teachers having ‘A’ at second position in their name

Query 8 Update Marks of any student.

Query 9 Arrange students record in descending order of their Names.


Query 10 add a column name ‘class’ in table student

Query 11 Delete a column from table student


Query 11 add and update any column in table student

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

You might also like