0% found this document useful (0 votes)
45 views2 pages

List of Programs - Class 12

List of Class 12 Practical Questions Computer Practical
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)
45 views2 pages

List of Programs - Class 12

List of Class 12 Practical Questions Computer Practical
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/ 2

List of Programs

Class- 12 Science
1. Write a Program in which check and display whether a word is palindrome word or
special word or none of them.
[Hint: Special words are those words that starts and end with same letter(existence,
comic). An palindrome words are the words which reads the same from left to right and
vice versa. Example:-MADAM. All palindrome words are special words but all special
words are not palindrome.]
2. WAP to accept a set of numbers in tuple. Count and display all the niven numbers.
(Hint: The number is niven number if it is divisible by sum of it's digit.
Example :- 126,156,etc)
3. WAP to input integer numbers in a list and display those numbers which are buzz
numbers.
(Hint: A number is said to be Buzz number if it is divisible by 7 and ends with digit 7)
4. WAP to assign three dictionaries each containing name, age and salary of an
employee and increase the salary of those employee whose age is 55 years and
above by 20%. Display the original and updated dictionary.
5. Write a program to assign two dictionary, one containing state’s name and another
containing the corresponding capital’s name. Now enter the state names. If found
then display the state’s name along with its capital name otherwise display “State
name not found”.
6. Write a program which will accept a word in lower case and pass it into the function
Arrange( ). Arrange all the letters of the word in its alphabetical order and display
the result with the number of vowels and consonants present in the same.
7. Write a menu driven program using function twisted( ) and twin( ) to check whether
a number passed as an argument is a Twisted prime or Twine prime.
[ Hint: 1. A number is said to be twisted prime if the given number is a prime and the
reverse of the number is also prime. Eg. 167 is a prime number as well as 761 is also a
prime number.
2. A number is said to be Twin prime if they occur as a pair of prime numbers whose
difference is 2. (5,7),(11,13),(17,19) etc. are regarded as twin prime.]
8. Write a function find( ) that takes two numbers and return the number that has
minimum one’s digit.
[Eg. If number passed are 491 and 278, then function will return 491 because it has got
minimum one’s digit out of two given numbers. (491’s 1 is < 278’s 8)]
9. Write a program to create a file “hello.txt” and write something into it. Also display
the content of the file as full, line by line and each line in a list format.
10. Write a function Words( ) in Python to read lines from a text file 'Story.txt'. Display
the number of words in the text file and the words which starts and end with vowel
as well.
11. The file 'Name.txt' stores the names of all the students of class XII with admission
number. Write a function Count( ) which will display number of uppercase and
lowercase letters available in the file.
12. Write a function Longest() in Python to read lines from a text file 'Story.txt' and
display the longest line available in the file.
13. Mrs. Sugandha has stored the record of all the students of her class in a binary file
“class.dat”. Create the file and store the records until the user wishes to enter record into the
file. The structure of the record is [Roll_no , Name , Percentage]. Create a function
remedial( ) to count and display the number of students who need remedial classes
provided the students scored less than 40.
14. Write a program to create a binary file itemdetails.dat which will store the Item No.,
Item Name, Quantity and Price of the items in a dictionary format into the binary file
where the number of the records to be input shall be given by the user. Display the
content with the total amount of each items.
[Sample Input : {“Item No”:1001,”Item Name”:”Britania”,”QTY”:40,”Price”:200}
Sample Output: Item No: 1001
Item Name: Britania
Quantity: 40
Price: 200
Total Amount: 8000]
15. A person needs to store the details of the item in his shop in binary format where he needs
to keep the record in the format [itemnumber, itemname, qty, price] until the user wishes to
enter record into the file. Later he wish to display the items whose quantity is 75 and above.
Write a function create( ) for creation of file. Write a function filter( ) to display the
names of the items whose quantity is 75 and above.

Note:
1. You need to do the program in Shoelace file only.
2. Write the source code in the ruled side and after getting the output take the print out of the
screen short of the same and paste it at the opposite side (white side of the interleaf)
3. All the program should be hand written.
4. All the outputs should be printed format.
5. Index page should be done in following way

Srl No. Topic Teacher’s Signature


1. Write a Program in which check and display whether a word is
palindrome word or special word or none of them.

You might also like