0% found this document useful (0 votes)
465 views

Python Lab Question Bank-Part-A, B-SEE Studs

The document contains sample questions for an Ability Enhancement Course in Python programming. It includes questions that require writing Python programs to: 1) Convert days to years, weeks and days. 2) Display exam scores in letter grades or descriptive categories. 3) Check if a year is a leap year. The questions cover a range of Python programming topics like loops, functions, strings, files, lists, sorting, matrices, object-oriented concepts, inheritance and signal processing. Students are required to write well-structured Python code to solve problems in these areas.

Uploaded by

NikhiL Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
465 views

Python Lab Question Bank-Part-A, B-SEE Studs

The document contains sample questions for an Ability Enhancement Course in Python programming. It includes questions that require writing Python programs to: 1) Convert days to years, weeks and days. 2) Display exam scores in letter grades or descriptive categories. 3) Check if a year is a leap year. The questions cover a range of Python programming topics like loops, functions, strings, files, lists, sorting, matrices, object-oriented concepts, inheritance and signal processing. Students are required to write well-structured Python code to solve problems in these areas.

Uploaded by

NikhiL Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Ability Enhancement Course

21ECL581- Programming in Python Lab


Sample Question Bank
Part-A
1. Write a program to convert number of days to measure of time given in years, weeks and
days(Ignore leap year)

2. Write a Program to Prompt for a Score between 0 and 100 and display the result as below:

O A+ A B+ B C P F
90-100 80-89 70-79 60-69 55-59 50-54 40-49 < 40
Outstanding Excellent Very Good Good Above Average Average Poor Fail

3. Program to Check If a Given Year Is a Leap Year

4. Enter the numbers till the user enters word “end”, Count and print the number of Odd,
Even, Positive number, Negative number, Prime number and average in each case.

5. Write a python program to display the Fibonacci sequence between the intervals specified
by the user and also print the count of odd, even and prime Fibonacci numbers in the same
interval.

6. Write a Program to compute area of hexagon, area of a pentagon, area of octagon, area of
decagon using functions

7. WAP that accepts a sentence and calculate the number of vowels, consonants, words,
digits, blanks, uppercase letters and lowercase letters.

8. Write a Program to display required patterns with Stars/ Alphabets /Numbers :


Any given pattern/Butterfly pattern / Staircase pattern / Given Initials/ “ PAPAYA” using
functions/ Pattern PPY (vertically, use $ symbol) by calling each pattern as function, with
P in blue colour and Y in Yellow colour.

9. Write Python Program to Sort Numbers in a List in Ascending Order Using Bubble Sort
by Passing the List as an Argument to the Function Call.
10. Prompt the user to enter list of marks, increase the odd marks by 1 and print the list of
modified marks, average marks.
11. Write a program to find Mean, Variance and Standard Deviation of List Numbers
12. Write a python program to add/subtract two matrices
13. Write a python program to input information for n number of students as given below:
Name, Registration number, Attendance, Total marks. The user has to specify a value for
n number of students. The program should output the registration number and marks of a
specified student given his name.
14. Write a program to search an element using Binary Search of a Sorted List/ Linear search.
15. Write a Program to sort an array in ascending/ descending order using Bubble sort/selection
sort/Insertion sort.

Part -B
1. Write a program to print the number of lines, words, and characters present in the given
file.
2. Write a python program to find the longest word in a file. Get the file name from the user.
3. Write a Python program to create a dictionary in a CSV file with the heading USN, NAME,
Attendance ,Marks, then read and display the content of that CSV file
4. Write a Python Program to count the number of vowels present in a string using sets
5. Write Python Program to Calculate Area and Perimeter of different Shapes using
Polymorphism
6. Write a python program to demonstrate polymorphism using classes Vehicle, Bike, Car,
Aeroplane.
7. Write a program to simulate a bank account with support for DepositMoney,
WithdrawMoney and ShowBalance operations.
8. Write a program to demonstrate multiple inheritance
9. Write a python program for simulation of Amplitude Modulated signal with time domain
representation.
10. Write a python program to simulate removal of noise from signals.
11. Write a program to compute DFT and IDFT for a discrete signal
12. Write a program to extract In-phase and quadrature phase signals from a random data.
13. Write a program to design a IIR Butterworth Low pass/High pass/Bandpass/Band stop
filter for a given specifications
14. Write a program to design a FIR low pass filter using Hamming Window
15. Write a program to simulate digital modulation technique ON-OFF Keying.

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