GRADE : XI COMPUTER SCIENCE PRACTICAL FILE
1. Write a program to accept the radius of a sphere from the user and display its area
and [Link]=πr2 and volume=4πr3
2. Write a program to accept a number from the user and display its factorial.
3. Write a program to accept a number from the user and display whether it is a
palindrome number or not.
4. Write a program to accept a number from the user and display whether it is a prime
number or not.
5. Write a program to display the following pattern :
6. Write a program to display the following pattern :
7. Write a program that reads a string and print its statistics like : Number of Uppercase
letters, Number of lowercase letters, Number of alphabets, Number of digits,
Number of symbols.
8. Write a program that asks the user for a string s and character c and then it prints
the location of the character c in the string s.
9. Write a program to input a list and an element, and remove all occurrences of the
given element from the list.
10. Extract two list slices out of the given list of numbers. Display and print the sum of
elements of list slice which contains every other element of the list between indexes
5 to 15. Program should display the average of elements in second list slice that
contains every fourth element of the given list. The list contains numbers 1 to 20.
11. Write a program to input two lists and display the maximum element from the
elements of both the list combined, along with the index in its list.
12. Write a program to input names of n students and store them in a tuple. Also input a
name from the user and find if this student is present in the tuple or not.
13. Write a program to check if a tuple contains any duplicate elements.
14. Write a program to create a dictionary with the roll number, name and marks of n
students in a class and displays the names of students who have marks above 75.
15. Write a Python program that takes a value and checks whether the given value is
part of given dictionary or not If it is, it should print the corresponding key otherwise
print an error message