0% found this document useful (1 vote)
893 views

Practical File CS (PYTHON)

The document lists 10 practical programming exercises for a Computer Science class using the Python programming language. The exercises include writing programs to check if a number is prime or a palindrome, swapping variable values with a function, reading and printing a file line by line, calculating a file's line count and size, calculating factorial and Fibonacci sequences recursively, performing a binary search, opening a webpage with urllib, and storing student records in a data file. Students are instructed to write the programs on A4 sheets with headings, including the question before each program. Printouts will be collected later for assessment.

Uploaded by

Utkarsh Verma
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
893 views

Practical File CS (PYTHON)

The document lists 10 practical programming exercises for a Computer Science class using the Python programming language. The exercises include writing programs to check if a number is prime or a palindrome, swapping variable values with a function, reading and printing a file line by line, calculating a file's line count and size, calculating factorial and Fibonacci sequences recursively, performing a binary search, opening a webpage with urllib, and storing student records in a data file. Students are instructed to write the programs on A4 sheets with headings, including the question before each program. Printouts will be collected later for assessment.

Uploaded by

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

PRACTICAL FILE- COMPUTER SCIENCE (083)

LIST OF PRACTICALS (2019-20) CLASS-XII


Programming Language : Python
S.
No.
NAME OF PRACTICAL
1 Write a program in python to check a number whether it is prime or not.
2 Write a program to check a number whether it is palindrome or not.
3 Write a function to swap the values of two variables through a function..
4 Write a python program to Read a file line by line and print it.
5 Write a program to display the number of lines in the file and size of a file in bytes.
6 Write a program to calculate the factorial of an integer using recursion.
7 Write a program to print Fibonacci series using recursion.
8 Write a program for binary search.
9 Write the python code to Open a webpage using the urllib library.
10 Write a python program to get rnos ,names and marks of the students of a class and store
these details in a file called "Marks.dat".

Note:
1.Write the above programs using A4 sheets,with suitable heading like Workshop 1,Workshop 2…… and
so on.
2. Write the question first and then write the program.
3. Do not take the print outs,write it of your own.
4.Print outs will be taken during final phase of the file.
5.Submit the practical file batch wise on your day of CS practical positively.

You might also like