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

Class XII Board Practical

.....

Uploaded by

Niladri • Ray
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views2 pages

Class XII Board Practical

.....

Uploaded by

Niladri • Ray
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Class XII

List of Computer Science Programs for Practical Examination

1.Write a program to calculate factorial of a number using while loop.


2. Write a program to find the maximum, minimum and mean value
from the entered list.

3. Write a program to count the number of characters( character


frequency) in a string. Sample string: ”google.com”

4. Write a program to read a text file and display the count of vowels
and consonants in the file.

5. Write a program to create a file stu.dat. Open the file and search for
records with roll 9 and 10. If found display the records.

6. Write a program to create a CSV file to store student data(Roll,


Name, Marks). Obtain data from user and right five records into the file.

7. Write a program that asks the user the day number in a year in the
range 2 to 365 and asks the first day of the year-Sunday or Monday or
Tuesday etc. Then the program should display the day on the day
number that has been input.

8.Write a program that reads a date as an integer in the format


MMDDYYYY. The program will call a function that prints date in the
following format:

<Month name> <day>, <year>.

9. Write a program to increase the salary by Rs. 2000/- of the employee


having empno as 1251 in the file empl.dat.
10. Write a program to read following details of sports performance
( sport, competitions, prizes-won) of your school and store into a CSV
file delimited with tab character.

11. Write a program that depending upon user’s choice, either pushes
or pops an element in a stack.

12. Write a program to read a text file and display the count of
lowercase and uppercase letters in the file.

13. A Binary file “Emp.dat” has structure (emp_id,Name,Salary). Write a


function countrec() in python that would read contents of the file
“Emp.dat” and display the details of those employees whose salary is
more than 20000.

14. Write a program to reverse a string using stack.

15. Write a program that inputs a main string and then creates an
encrypted string by embedding a short symbol based string after each
character. The program should also be able to produce the decrypted
string from encrypted string.

You might also like