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

Practical List-New 2024

Uploaded by

mchandraswaraj
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)
28 views2 pages

Practical List-New 2024

Uploaded by

mchandraswaraj
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

Practical List Class-XIA+C

1. Write a program for addition of two numbers.


2. Write a program to calculate area and perimeter of rectangle.
3. Write a program to calculate simple interest.
4. Write a program to calculate BMI.
5. Write a program to enter name, class and marks of 5 subjects and calculate
total marks and percentage.
6. Write a program to take temperature in Fahrenheit and convert it into Celsius.
7. Write a program that print the information about roll no ,name, address, phone
no of that student.
8. Write a program to display a menu for calculating area and perimeter of a circle.
9. Write a program that reads two numbers and arithmetic operator and display the
computed result.
10.Write a program that read 3 numbers and print them in ascending order.
11.Write a program to calculate and print roots of a quadratic equation ax2 +bx +c
=0 (here a!=0)
12.Write a program to find a year is leap year or not.

13.Write a program to print sum of natural numbers from 1 to 10.

14.Write a program to calculate and print sum of even/odd numbers from 1 to 50.

15.Write a program to print table of any number.

16.Write a program to print smallest number among 3 numbers.

17.Write a program to print largest number among 3 numbers.

18.Write a program to print smallest number among 3 numbers.

19.Write a program to check user id and password both and print message for
authorized or unauthorized user.

20.Design an application to print Fibonacci series: 1,1,2,3,5,8,13………………………………


21.Create a list L that contains only even no from 1 to 10 ,print sum and average of
these numbers.
22.Write a program to create a list L1 which is copy of list L and one in first element
and subtract 2 from last element and then print first and last element.
23.Write a program to do the following task :-
(i) Create a list L1 =[11,12,13,14,15]
(ii) Modify the second element of list L1 that is 22.
(iii) Add 2 in the third element of list.
(iv) Count total no of elements in the list.
(v) Add a new item 16 in the correct position
(vi) Arrange all the elements of list in descending order.
(vii) Print minimum, maximum element of list.
24.Write a program to search for an element in the list ,print its position.
25.Write a program to count the frequency of a given element in the list.
26.Write a program to enter 3 list for assets, liabilities and capital .check accounting
equation is balanced or not.
27.Write a program to enter a list L1 and 2 numbers M and N .Then create a list L2
that contain elements which are divisible by both M and N.
28.Create a Dictionary D1={jan:31,feb:28,mar:31,apr:31}
29.Print length of the dictionary.
30. Access all keys of a dictionary.
31.Access values of dictionary.
32.Add a new item may:31 in dictionary.
33.update item feb:28 with value 29.
34.Delete item “may” from dictionary.
35.Check “feb” is present in dictionary or not.
36.Print value of mar in the dictionary.
37. Write a program to enter roll no, marks of 3 students in a dictionary . Here roll no
are keys and marks are values .print all items of dictionary.
38. Write a program to create a dictionary EMP that stores ENO and ENAME of 3
employees. Enter ENO of employee who have transferred , delete it from
dictionary.
39.Write a program to create a dictionary d1 that stores state and their capitals.

40.Write a program to enter product name and their price. create a dictionary
PRODUCT Stores all the details regarding products and print all items.

You might also like