Course Title: Programming with Python
Course Code: 22616
End Semester Examination Question Bank
(Summer 2021)
Exam Date :25/06/2021
QSET No Program
1 Write a Program to find the area of a triangle.
2 Write a Program to swap two variables.
3 Write a Program to calculate area and perimeter of the square.
4 Write a Program to convert bits to Megabytes, Gigabytes and Terabytes
5 Write a Program to Check if a Number is Odd or Even
6 Write a Program to Check Leap Year
7 Write a Program to Check if a Number is Positive, Negative or Zero
8 Write a Program to Print the Fibonacci series
9 Write a Program to Find the Factorial of a Number
10 Write a Python Program to sum of all items in a list.
11 Write a Program to get the largest number from a list.
12 Write a Program to get the smallest number from a list.
13 Write a Program to reverse a list.
14 Write a Python Program to select even items of a list.
15 Write a Python Program to fine the repeated items from a tuple.
Write a Python Program ,print the number in words for example:1234=> One Two
16
three Four
17 Write a Python Program to find the length of a set.
18 Write a Python Program to find maximum and minimum value in a set.
19 Write a Python Program to find the highest 3 values in a dictionary.
20 Write a Python Script to sort a dictionary by value(asc and desc)
Write a Python function that accepts a string and calculate the number of upper
21
case letters and lower case letters.
22 Write a Python Program to Find Factorial of Number
23 Write a Python Program to Display Calendar of given month using Calendar Module
Write a Python Program that will calculate area and circumference of circle using
24
inbuilt Math Module
25 Write a Python program to check for ZeroDivisionError Exception.
26 Write a Python program to calculate the sum of a list of numbers?
27 Write a Program to print ASCII Value of a character in python?
28 Write a Program to Read more than one charactes at a time from file(use any file)
29 Python program to find the circumference and area of a circle with a given radius
30 Python program to delete an element from a list by index
Python program to display all integers within the range 100-200 whose sum of
31
digits is an even number
32 Python program to find the sum of all items in a dictionary
33 Python program to swap two elements in a list
34 Python program to Read content from one file and write it into another file
35 Python program to print all even numbers in a range