0% 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.

Uploaded by

Kunal Singhal
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)
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.

Uploaded by

Kunal Singhal
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/ 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.

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