The document contains a series of Python programming exercises focused on conditional statements. It includes tasks such as checking divisibility, determining if a character is a vowel, calculating grades based on marks, and assessing whether a year is a leap year. Additional exercises involve calculating BMI, finding the largest of three integers, and basic arithmetic operations.
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 ratings0% found this document useful (0 votes)
2 views9 pages
Class Xi Practical Conditional Statements (1) 2
The document contains a series of Python programming exercises focused on conditional statements. It includes tasks such as checking divisibility, determining if a character is a vowel, calculating grades based on marks, and assessing whether a year is a leap year. Additional exercises involve calculating BMI, finding the largest of three integers, and basic arithmetic operations.
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/ 9
PYTHON PROGRAMMING – CONDITIONAL
STATEMENTS 1. WAP to check whether a number is divisible by 5 and 11 or not
2. WAP to display Digit in text (0 to 9)
3. WAP to Check given character is vowel or not.
4 Write a python program to check whether the
year is leap year or not. 5 write a program to print roots of a quadratic equation ax2 + bx +c=0 (where a≠0)
6. WAP to input marks in 3 subjects,
compute average and then calculate grades as per following guidelines: Gra de Remarks MArks 80% and A Level 4,above agency- above normalized standards Level 3,at agency- B normalized 70-79% standards Level2,Below but C approaching 60-69% agency- normalized standards Level 1-well below D agency- 50-59% normalized standards Level 1- too below E agency- 40-49% normalized standards 39% and R Remedial standards below 7. Write a program to input a number and print its square if it is odd, otherwise print its square root.
8. Input three angles and determine if they form a
triangle or not. 9. Write a program to calculate BMI and print the nutritional status as per following table: Nutrition WHO criteria al Status BMI cut-off Underwei <18.5 ght Normal 18.5-24.9 Overweig 25-29.9 ht Obese ≥30
10. Write a program to find largest among three
integers. 11. Write a program that accepts the age and print if one is eligible to vote or not.
12. Write a program that accepts two numbers
and check if the first number is fully divisible by second number or not. 13. Write a program to input a number and check whether it is positive, negative or zero.
14. Write a program to display a menu for
calculating area of circle or perimeter of the circle. 15. Write a program that reads two numbers and an arithmetic operator and displays the computed result.