questionbank for python
questionbank for python
1
• Explain Features of Python
• What is Variable? Write naming rules.
• Explain Structure of Python.
• Write note on Data Structure in Python
• Write a program to accept 2 numbers from user and perform addition, subtraction,
multiplication.
• Write a program to display use of format() function.
• Write a program to accept string from user and display that string along with message
“How are you?”
• Write a program to create tuple of 7 element and display
• Full tuple
• 2nd to 4th elements
• 5th to End
simple calculator (+ - / * %)
that takes two operands as input and displays the result
2. Write a program to find area and perimeter of 3 geometric objects.
Chapter No. 2
• Write a program to find greater number among three numbers accepted from user
If the ages of three brothers are input through the keyboard, write a python Program to
determine the youngest and oldest of the three.
Chapter No. 3
• Write a program to input any two tuples and interchange the tuple variable.
• Create a tuple and find the minimum and maximum number from it.
• Write a Python program to find the repeated items of a tuple.
• Print the number in words for Example: 1234 => One Two Three Four
2. Count all letters, digits, and special symbols from a given string.
3. Write a Python program to get the largest number from a list.
Write a Python program to get the smallest number from a list
Write a Python program to count all elements in list and count Occurrences Of A List Item
In Python
Chapter No. 4
Chapter No. 5
Write a program for
o Creating a 3X4 array with all zeros
o ii)Create a constant value array of complex type
o ii)Create a sequence of integers from 0 to 30 with steps of 5
Write a program for performing matrix addition , subtraction and multiplication
Explain package Numpy with example.
Explain package Pandas with example.
Write note on matplotlib library.
Explain Data Structures in Pandas Library
Explain operation on DataFrame.
Write a program for binary search.
Chapter No. 6
How to create user define exception explain with example.
What is exception handling? List any 10 standard exceptions.
What are the file Object Attributes, explain with example.
Describe various modes of file object? Explain any two in detail
Show how try…except blocks is used for exception handling in Python with example
Write a program to open a file in write mode and append some contents at the end of
file.