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

Class XI

......

Uploaded by

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

Class XI

......

Uploaded by

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

KENDRIYA VIDYALAYA JAGDALPUR

SESSION 2024-25
COMPUTER SCIENCE PRACTICAL
CLASS XI

1. Write a python program to input a welcome message and display it.


2. Input two numbers and display a larger/smaller number.
3. Input three numbers and display larger/smaller numbers
4. Generate the following pattern using a nested loop.
a. * b. 1 c. 1 2 3 4 5
* * 1 2 1 2 3 4
* * * 1 2 3 1 2 3
* * * * 1 2 3 4 12
* * * * * 1 2 3 4 5 1
5. Write a program to input the value of x and n and print the sum of the following
series.
a) 1+x+ x2+ x3+x4+x5+…………….xn
b) 1-x+x2- x3+x4 -x5+…………….xn
c) x+ x2/2+ x3/3+x4/4+x5/5+…………….+xn/n
6. Determine whether a number is a perfect number or not
7. Determine whether a number is a palindrome number or not
8. Determine whether a number is a armstrong number or not
9. Input a number and check if the number is a prime or composite number
10. Display the terms of a Fibonacci series.
11. Count and display the number of vowels, consonants, uppercase, lowercase characters
in string
12. Count the total number of words in a string.
13. Input a string and determine whether it is a palindrome or not; convert the case of
characters in a string.
14. Find the largest/smallest number in a list/tuple
15. Input a list of numbers and swap elements at the even location with the elements at the
odd location.
16. Create a list of students containing their names.
17. Create a nested list of 5 records of books [bookid,bookname,bookprice]
18. Input a list/tuple of elements, search for a given element in the list/tuple
19. Write a program to read a list of n integers (positive as well as negative). Create two
new lists, one having all positive numbers and the other having all negative numbers
from the given list. Print all three lists.
20. Create a dictionary with the roll number, name and marks of n students in a class and
display the names of students who have marks above 75
21. Write a python program to implement the random function ,randint,randrange using
random module.
22. Write a python program to implement the statistics function (mean, median,mode)
using the statistics module.
23. Write a python program to implement the math function
(sqrt,ceil,floor,pow,fabs,sin,cos)
24. Create a string ‘computer science practicals’ then split the given string into words.
25. Write a python program to implement string methods(isupper, islower,isdigit,isalpha,
isalnum,split,partition,srtrip).
26. Create a list of books (10 books name) then display the book's name which starts from
vowels.
27. Write a python program to differentiate append and extend method of list.
28. Write a program to implement dictionary method ( update,keys,items,values,get)
29. Create a nested list of 6 student which stores their [rollno ,name] then display the
name of student by entering roll no.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy