(1) (a) Write a program to determine whether a given year is a leap year, using the following
formula: a leap year is one that is divisible by four, but not by one hundred, unless it is also
divisible by four hundred. For example, 1992, 1996, and 2000 are leap years, but 1967 and
1900 are not. The next leap year falling on a century is 2400.
(b) write a python program to find out area of rectangle.
(2) (a) Create a calculator application. Write code that will take two numbers and an operator in
the format: N1 OP N2, where N1 and N2 are floating point or integer values, and OP is one of
the following: +, -, *, /, %, **, representing addition, subtraction, multiplication, division,
modulus/remainder, and exponentiation, respectively, and displays the result of carrying out
that operation on the input operands.
(b) write a python program to find out area of circle.
(3) (a)Write a program to calculate value of the following series 1+x-x 2 +x3 -x 4 +----x n .
(b) write a python program to find out area of triangle.
(4) (a)Write a program to print Pascal triangle.
(b) write a python program to find greatest number in three numbers.
(5) (a) Write a Python program for checking whether the given number is an even number or
not.
(b) write a python program to find greatest number in two numbers.
(6) Using a for loop, write a program that print out the decimal equivalents of
1/2,1/3,1/4….1/10.
(b) write a python program to convert Fahrenheit to Celsius.
(7) Write a program using a for loop over a sequence.
(b) write a python program to convert height (feet, inches) to centimetre.
(8) (a) write a python program to display the result such as distinction first class, second class,
pass or fail based on the marks entered by the user.
(b)write a python program to convert given time into minutes & seconds. For example, if
user inputs 260 sec then the output should be 4 min 20 sec. (use // and % operator).