List of Practical for Class XI-Computer Science
1. WAP to obtain 3 numbers and print their sum.
2. WAP to obtain length and breadth of a rectangle
and calculate its area.
3. WAP to calculate BMI (Body Mass Index) of a
person. It is calculated using a person’s height and
weight. The formula is: MBI = KG/M2, where KG is
weight in Kilograms and M is height in meters.
4. WAP to take a number from user and check
whether the given number is EVEN or ODD.
5. WAP to accept 3 integers and print the largest of
them. Use only if statement.
6. WAP to accept 3 integers and print the largest of
them. Use anything other than ONLY if.
7. WAP to input a number and find if it is a PRIME
number of not.
8. WAP to print the table from 2-10 using for/while
loop.
9. WAP to print the following pattern using for loop:
1
22
333
4444
10. WAP to print the following pattern using for
loop:
*
***
*****
***
*
11. WAP to print the following pattern using for
loop:
1
212
32123
4321234
543212345
12. WAP to input 2 Strings. If String 1 is contained
in String 2, Create a third string with first 4
characters of string 2 added with the word
‘Restore’.
13. WAP to input a String and check if it is a
Palindrome using String slice.
14. WAP that creates a List of integers then
replicates the list twice and then print the sorted
list in ascending and descending order.
15. WAP to find the minimum integer from a list
of Integers along with its index.
16. WAP to evaluate the mean of a given list of
numbers.
17. WAP to create 3 tuples from the inputs given
below:
A. “abcdef” B. 3,4,5,6 C. [11,12,13]
18. WAP to print the elements in separate lines
and their Positive & Negative indexes:
(“Hello”,”isn’t ”,”Python”,”Fun”,”?”)
19. WAP to create a dictionary, which stores the
marks of the students of class with roll numbers as
the keys and marks as the values. Get the number
of students as input.
20. Consider dictionary created in the previous
program. WAP to modify the marks of a roll
number. Obtain roll number and updated marks as
input. Print the updated dictionary.
21. WAP to generate a random floating number
between 45.0 and 95.0. Print this number along
with its nearest integer greater than it.
22. WAP to generate 2 random numbers between
135 and 567. Print these numbers as well as their
average.