You are on page 1of 6

MAMTA MODERN SR. SEC.

SCHOOL

CLASS XII PRACTICAL FILE

COMPUTER SCIENCE(083)

NAME: POOJA NAGPAL


CLASS:
ROLL NO:
PRACTICAL FILE
PROGRAMS
1. Write a function to check whether entered number is prime or not.
INPUT:

OUTPUT:

2. Write a function to check whether number entered is palindrome or not.


INPUT:

OUTPUT:
3. Write a function to check whether a string entered is palindrome or not .
INPUT:

OUTPUT:

4. Write a program to show the statistics of characters in given line (to count the
number of alphabets , digits , uppercase , lowercase letters , spaces and other
characters ).
INPUT:
OUTPUT:

5. Write a function to perform linear search in a list.


INPUT:

OUTPUT:

6. Write a function to perform binary search in a list


INPUT:
OUTPUT:

7. Write a function to perform sorting in a list

INPUT:

OUTPUT:

8. Write a function to remove all odd numbers from given list .


INPUT:
OUTPUT:

9. Write a function to display frequencies of all elements in a list .


INPUT:

OUTPUT:

10.Write a program to find and display the sum of all values in a list ending
with 3.
INPUT:

OUTPUT:

You might also like