Python Programming Test
Time : 3 hrs.
Complexity : Intermiate (Average level)
Section A: (Any four)
1. Count vowels in string
”Course durations usually range from 1 month to 3 months, and fees may be subject to
change depending on the current curriculum and batches.”
2. Create List which contain 10 numbers and find sum of them.
3. Create function to print any string 5 times.
4. Write a program to add any two numbers.
5. Reverse your name by entering your proper name.
Section B:
1. Find factorial of any number using loop.
2. Remove duplicates values in List
List = [“Mohit”, “Banana”, 545,566,454, 545,”mohit”,’Nidhi’]
3. Create List contains Numbers from 2 to 200 and remove even numbers from it.(you
can use function and/or loops and/or condition for creating and manipulating the
list).
4. Find largest numbers in 4 numbers which entered by user.
Section C: (Any one)
1. Create function to find second largest number in those 4 numbers which are entered
by user.
2. Create calculator for perform operations between 2 numbers.(use functions)
→ User enters the operation name and the both numbers as input