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

practical_list xi cs (1)

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

practical_list xi cs (1)

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

KENDRYA VIDYALAYA DINJAN

PRACTICAL LIST
SUBJECT: COMPUTER SCIENCE Class: XI SESSION 2021-22
_________________________________________________________________

1. WAP to input a welcome message and display it.


2. WAP to input two numbers and display the larger/Smaller number.
3. WAP to input three numbers and display the largest/ Smallest number.
4. WAP to input radius of circle and print its area and perimeter.
5. WAP to input marks of student in 5 subjects and print its percentage.
6. WAP to generate the following patterns using nested loop.
i) ii) iii)
* 12345 A
** 1234 AB
*** 123 ABC
**** 12 ABCD
***** 1 ABCDE
7. WAP to input the value of x and n and print the sum of the following series:
• 1+x+x2+x3+x4+…………………………..xn
• 1-x+x2-x3+x4-..…………………………..xn
x2 𝑥3 𝑥4 𝑥𝑛
• x- + - + …………………..
2! 3! 4! 𝑛!
x2 𝑥3 𝑥4 𝑥𝑛
• x+ - + - …………………..
2! 3! 4! 𝑛!
8. WAP to input a number and check it is even or odd.
9. WAP to input a number and print its factorial.
10.WAP to print Fibonacci series for n terms
ex. for 8 terms series like this ……..0 1 1 2 3 5 8 13
11.WAP to input a number and determine whether it is perfect number, an
armstrong number or palindrome.
12.WAP to input a number and check if the number is prime or composite
number.
13.WAP to compute the GCD (greatest Common Divisor) and LCM (least
common multiple) of two integers.
14.WAP to input n numbers from user and count how many even numbers
entered by user.
15.WAP to input a string and determine whether it is a palindrome or not;
convert the case of characters in a string.

1|Page
16.WAP to count and display the number of vowels, Consonants, uppercase,
lowercase characters in string.
17.WAP to input a list of numbers and swap elements at the even location with
elements at the odd location.
18.WAP to input a value in a variable and print its data type and address.
19.WAP to input a list of elements and print sorted list using bubble sorting.
20.WAP to input a list of elements and print sorted list using insertion sorting.
21.WAP to input a list/ tuple of elements, search for a given element in the
list/tuple.
22.WAP to print Largest / Smallest number in a list/ tuple.
23.WAP to create a dictionary with the roll number, name and marks of n
students in a class and display the names of students who have scored marks
above 75.

********************************

2|Page

You might also like