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

Python Practical Exam

The document outlines a list of programming tasks for a Practical Exam in Python. It includes a variety of exercises ranging from basic operations like finding square roots and swapping variables to more advanced topics such as classes, inheritance, and GUI programming with Tkinter. Each task is designed to test different programming skills and concepts in Python.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
68 views2 pages

Python Practical Exam

The document outlines a list of programming tasks for a Practical Exam in Python. It includes a variety of exercises ranging from basic operations like finding square roots and swapping variables to more advanced topics such as classes, inheritance, and GUI programming with Tkinter. Each task is designed to test different programming skills and concepts in Python.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Programs for PWP Practical Exam

1. Write a program to find the square root of a number.


2. Write a program to swap the value of two variables.
3. Write a program to calculate surface volume and area of a cylinder.
4. Write a Python program to display your name using Script Mode.
5. Write a program to convert Megabytes to bits
6. Write a program to check the largest number among the three numbers
7. Write a program to check if the input year is a leap year or not
8. Write a program to check if a Number is Positive, Negative or Zero
9. Write a program that takes the marks of 5 subjects and displays the grades.
10.Write a Python program that takes a number and checks whether it is a palindrome or
not.
11.Write a Python program to print all even numbers between 1 to 100 using while loop.
12.Write a Python Program to Reverse a given number.
13.Write a python program to find Factorial of given number.
14.Write a python program to find Fibonacci series for given number.
15.Find sum of four digit number.
16.Write a Python program to find common items from two lists.
17.Write a Python program to reverse a list.
18.Write a Python program to sort a list.
19.Create a tuple and find the minimum and maximum number from it.
20.Write a Python program to find the repeated items of a tuple.
21.Write a Python program to copy specific elements existing tuple into new tuple.
22.Create a tuple and find the minimum and maximum number from it.
23.Write a Python program to find the repeated items of a tuple.
24.Write a Python program to create a set, add member(s) in a set and remove one item
from set.
25.Write a Python program to find maximum and the minimum value in a set.
26.Write a Python program to find the length of a set.
27.Write a Python program to perform following operations on set: intersection of sets,
28.union of sets, set difference, symmetric difference, clear a set.
29.Write a Python script to sort (ascending and descending) a dictionary by value.
30.Write a Python script to concatenate following dictionaries to create a new one.
Sample Dictionary:
dic1 = {1:10, 2:20}
dic2 = {3:30, 4:40}
dic3 = {5:50,6:60}
31.Write a Python program to perform following operations on set: intersection of sets,
union of sets, set difference, symmetric difference, clear a set.
32.Write a Python program to find the highest 3 values in a dictionary.
33.Write a Python function that takes a number as a parameter and check the number is
prime or not.
34.Write a Python function to calculate the factorial of a number (a non-negative
integer). The function accepts the number as an argument.
35.Write a Python function that accepts a string and calculate the number of upper case
letters and lower case letters.
36.Write Python program to demonstrate use of following advanced function: lambda
37.Write Python program to demonstrate use of following advanced function: map
38.Write Python program to demonstrate use of following advanced function: reduce
39.Write a Python program to create a user defined module that will ask your college
name and will
40.display the name of the college.
41.Write a Python program to define a module to find Fibonacci Numbers and import
the module to another program.
42.Write a Python program to display calendar of given month using Calendar module.
43.Write a python program to calculate area of circle using inbuilt Math module.
44.Write a python program to concatenate two strings using NumPy.
45.Write a NumPy program to generate six random integers between 10 and 30.
46.Write a Python class to implement pow(x, n).
47.Write a Python class named Rectangle constructed from length and width and a
method that will compute the area of a rectangle.
48.Write a python program to implement parameterized constructor.
49.Write a python program to implement constructor overloading.
50.Write a Python program to create a class to print the area of a square and a rectangle.
51.The class has two methods with the same name but different number of parameters.
The method for printing area of rectangle has two parameters which are length and
breadth respectively while the other method for printing area of square has one
parameter which is side of square.
52.Write a Python program to create a class 'Degree' having a method 'getDegree' that
prints "I got a degree". It has two subclasses namely 'Undergraduate' and
Postgraduate' each having a method with the same name that prints "I am an
Undergraduate" and "I am a Postgraduate" respectively. Call the method by creating
an object of each of the three classes.
53.Write a Python program to implement data hiding.
54.Write Python program to read and print students information using single
inheritance..
55.Write a Python program to implement multiple inheritance.
56.Write a Python program to implement multilevel inheritance.
57.Write a Python program to create series from array using Panda.
58.Write GUI program to import Tkinter package and create a window and set its title.
59.Write a Python program using Tkinter that creates a CheckButton.
60.Write a Python program using Tkinter that creates a RadioButton.

You might also like