practical file questons2024-25
practical file questons2024-25
Session 2024 – 25
Class XII - Practical File Questions
Python programs
1: Program to enter two numbers and print the arithmetic operations like +,-,*, /, // and %.
2: Write a program to find whether an inputted number is perfect or not.
3: Write a Program to check if the entered number is Armstrong or not.
4: Write a Program to find factorial of the entered number.
5: Write a Program to enter the number of terms and to print the Fibonacci Series.
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.
8: Read a file line by line and print it.
9: Remove all the lines that contain the character “a” in a file and write it into another file.
10: Read a text file and display the number of vowels/consonants/uppercase/lowercase
characters in the file.
11: Create a binary file with name and roll no. Search for a given roll number and display the
name, if not found display appropriate message.
12: Write a random number generator that generates random numbers between 1 and
6(simulates a dice)
13: Write a python program to implement a stack using a list data structure.
14: Read a text file line by line and display each word separated by a #
15: Create a CSV file by entering user-id and password, read and search the password for
given user id.
16: Write a Program to search an element using linear search.
17: Write a program to sort a sequence using insertion sort.
Movie_I
MovieName Type ReleaseDate ProductionCost BusinessCost
D
3: (Based on Functions)
Suppose your school management has decided to conduct cricket matches between students of
Class XI and Class XII. Students of each class are asked to join any one of the four teams –
Team Titan, Team Rockers, Team Magnet and Team Hurricane. During summer vacations,
various matches will be conducted between these teams. Help your sports teacher to do the
following:
FirstTeam SecondTeam
MatchID MatchDate FirstTeamID SecondTeamID
Score Score
M1 2021/12/20 1 2 107 93
M3 2021/12/22 1 3 86 81
M4 2021/12/23 2 4 65 67
M5 2021/12/24 1 4 52 88
M6 2021/12/25 2 3 97 68
1. Display the matchid, teamid, teamscore whoscored more than 70 in first ining along with
team name.
2. Display matchid, teamname and secondteamscore between 100 to 160.
3. Display matchid, teamnames along with matchdates.
4. Display unique team names
5. Display matchid and matchdate played by Anadhi and Shailab.