0% found this document useful (0 votes)
17 views3 pages

FINAL_CLASS_XI_CS_PRACTICAL_LIST_2024-25[

The document outlines the practical programming tasks for XI Computer Science students at PM Shri Kendriya Vidyalaya No.2 for the session 2024-25. It includes various exercises on Python fundamentals, conditional statements, iterative statements, strings, list manipulation, dictionaries, and tuples. Each section contains specific programming assignments aimed at enhancing students' coding skills.

Uploaded by

abhinavchettri90
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)
17 views3 pages

FINAL_CLASS_XI_CS_PRACTICAL_LIST_2024-25[

The document outlines the practical programming tasks for XI Computer Science students at PM Shri Kendriya Vidyalaya No.2 for the session 2024-25. It includes various exercises on Python fundamentals, conditional statements, iterative statements, strings, list manipulation, dictionaries, and tuples. Each section contains specific programming assignments aimed at enhancing students' coding skills.

Uploaded by

abhinavchettri90
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/ 3

PM SHRI KENDRIYA VIDYALAYA NO.

2 PORT BLAIR
XI COMPUTER SCIENCE PRACTICAL LIST SESSION 2024-25
I. INPUT /OUTPUT PYTHON FUNDAMENTALS

1) WAP to display your name


2) WAP to add 4 numbers[R=a+b+c+d] (Get a,b,c and d from users)
3) WAP to multiply 3 numbers[R=a*b*c]
4) WAP to find average of 5 numbers[R=(a+b+c+d+e)/5]
5) WAP to display age after 15 years.[nage =age+15]
6) WAP to find the perimeter of a square .[P=4*a]
7) WAP to find the area of a triangle [A=1/2*b*h]
8) WAP to display a3 [R=a*a*a]
9) WAP to find the area of circle [A=3.14*r*r]
10) WAP to find the volume of a sphere.[v=4/3*3.14*r3]
11) WAP to find the perimeter of a rectangle[A=2*(l+ b) ]
12) WAP to find the circumference of a circle [C=2*3.14*r]
13) WAP to input Hours, Minutes and Seconds and display in seconds.[TS=H*60*60+M*60+S]
14) WAP to find gross salary [GS=BASIC+DA-PF+HRA] [get BASIC,DA,PF,HRA as input]
15) WAP to calculate sum of 5 subjects & find percentage[TOT=s1+s2+s3+s4+s5,Per=TOT/5]
16) WAP which accept temperature in Fahrenheit and print it in centigrade[c=5/9*(T-32)]
17) WAP which accept temperature in centigrade and print it in Fahrenheit[F=(1.8*T)+32]
18) WAP to input cost and display cost after increasing 25% [cost+(cost*25)/100]
19) WAP to input total number of seconds and convert it into hours, minutes and seconds
20) Write a program to compute simple interest.

II. Conditional Statement

1) WAP to check whether the given number is even and odd


2) WAP to check eligibility to vote
3) WAP to check whether the given year is a leap year or not
4) WAP to check whether the given number is positive,negative or zero
5) Write a program to read two numbers and an arithmetic operator and display its result
6) WAP to find Person is a senior citizen or not, input age
7) WAP to find maximum of two numbers
8) WAP to find minimum of three numbers
9) WAP to display Digit in text (0 to 9)
10) WAP to check whether a number is divisible by 5 and 11 or not
11) WAP to Check whether the given character is a uppercase, lowercase, digit or any other character.
12) WAP to input three numbers and print them in ascending order
13) Write a program to print roots of a quadratic equation ax2 + bx +c=0 (where a≠0).
14) WAP to print the Income, Tax & Surcharge of an Employee. The Tax and Surcharge based on the following
conditions
IncomeTax % Surcharge %
<Rs. 15000 15% 7%
Rs. 15001 to Rs. 20000 18% 11%
Above Rs. 21000 20%13%
[Total Income =Income- Tax-Surcharge]
Display all information like Income, Tax &Surcharge .
15) Write a menu driven program to calculate:
Area of circle[A=πr2]
Area of square [A=a*a]
Area of rectangle[A=l*b]

1
III. ITERATIVE STATEMENTS

1) WAP to display all number from 1 to n.


2) WAP to display all odd numbers from 1to 100
3) WAP to calculate and print sum of odd and sum of even integers of first n natural numbers
4) Take an integer input N from the user. Print N Fibonacci numbers. Recall that Fibonacci series progresses
as 0 1 1 2 3 5 8…
5) Take an integer input N from the user. Find Factorial of N and print it
6) Take an integer input N from the user. Print the multiplication table of N
7) WAP to check whether the given number is palindrome or not
8) WAP to check whether the given number is prime or not
9) WAP to check whether the given number is Armstrong number or not
10) WAP to check whether the given number is Perfect number or not
11) WAP to find GCD and LCM of two numbers
12) WAP to print the following
*
**
***
****
*****
13) WAP to print following pattern
A
AB
ABC
ABCD
ABCDE
14) WAP to print following pattern
1
12
123
1234
12345
15) WAP to print following pattern
54321
5432
543
54
5

IV. STRINGS
1) Write a program for checking whether the given character is uppercase ,lowercase, digit ,special symbol
or white space.
2) Write a program to check whether the given String is a palindrome or not
3) Write a program which replaces all vowels in the string with ’*’
4) Write a program to display the last word of the string accepted from user.
5) Write a program to accept a string and display the string with second alphabet of each word in upper case

V. LIST MANIPULATION
1) Write a program to find Sum and average of all numbers in the list
2) Write a program to find Sum of odd and even numbers in a List
3) Write a program to Count number of positive and negative numbers
4) Write a program to Add 2 to even numbers and subtract 1 from odd numbers
5) Write a program to find the average of the list of the numbers entered through keyboard
6) Write a program to get a list of numbers from the user and Multiply even indexed numbers in a list by 2
7) Write a program to display number of names which starts with letter ‘A’ in the list of names
8) Write a program to display number of 5 lettered city names in the list of city names
2
9) Write a program in python which display only those names from the list which have ‘i’ as second last
character. like L = [“Amit”, “Suman”, “Sumit”, “Montu” , “Anil”]
Output :
Amit
Sumit
10) Write a program in python which swap the alternate members of list (assuming that even number of
elements in the list). like as shown below:
Original List : L = [23, 45, 67, 29, 12, 1]
After Swaping : L = [45,23, 29, 69, 1, 12]

VI. DICTIONARY

1) Create a dictionary ‘ODD’ of odd numbers between 1 and 10, where the key is the decimal number and
the value is the corresponding number in words. Perform the following operations on this dictionary:
(a) Display the keys
(b) Display the values
(c) Display the items
(d) Find the length of the dictionary
(e) Check if 7 is present or not
(f) Check if 2 is present or not
(g) Retrieve the value corresponding to the key 9
(h) Delete the item from the dictionary corresponding to the key 9

2) Write a program to enter names of employees and their salaries as input and store them in a dictionary
3) Write a program to count the number of times a character appears in a given string.
4) Write a function to convert a number entered by the user into its corresponding number in words. For
example, if the input is 876 then the output should be ‘Eight Seven Six’.
5) Write a program to display the name of all the employees whose salary is more than 25000 from the
following dictionary.
emp={1:(“Amit”,25000),2:(“Suman”,30000),3:(“Ravi”,36000)}
Format of data is given below :{Empid : (Empname, EmpSalary)}

VII. TUPLES
1) Write a program to accept a number from the user and store first 10 multiples of number in a tuple for
example :
SAMPLE OUTPUT :
Enter any number : 4
Tuple = (4, 8, 12, 16, 20, 24, 28, 32, 36, 40)
2) Write a program in python to display the sum of all even numbers and odd numbers separately from the tuple
given below :
T1 = (24, 45, 87, 46, 67, 44, 23, 12)
3) Write a program to accept five numbers from the user and store these numbers in a tuple. Display the
following from tuple :
Largest number
Smallest number
Sum of all numbers
Average of all numbers
4) Write a program to find the sum of marks of all students stored in the given tuple.
T1 = ((“Suman”, 75),(“Glory” , 35),(“Ravi”,50))
Expected Output is : 160
5) Write a program to accept roll number from user and display it’s detail from given tuple
Det=((1, ‘Amita’, ‘B’), (2, ‘Sunita’, ‘C’), (3, ‘Daya’, ‘A’))

You might also like