BMS INSTITUTE OF TECHNOLOGY AND MANAGEMENT
(An Autonomous Institution, Affiliated to VTU, Belagavi)
Avalahalli, Doddaballapur Main Road, Bengaluru – 560064
Introduction to Python Programming (BPLCK205)
Question Bank IA-I
Q1. List and explain different features of Python programming language.
Q2. List out the different types of operators available in Python programming language. Illustrate
each with a suitable example.
Q3. What are variables and data types in Python?
Q4. Define the rules for naming a variable with an example.
Q5. Evaluate the following expression by applying the operator precedence and associativity rules
For a=5, b=3,c=12,d=10 and e=3
a+b**(c//d)*e ii. a*(e+c)-d/b
Q6. Compare and contrast C and Python.
Q7. Describe the different types of conditional statements of Python programming language with
suitable examples.
Q8. Describe the different types of looping statements of Python programming language with
suitable examples.
Q9. What are the local and global scope of variables in python? Explain the different scenarios with an
example snippet.
Q10. Define list. List out the important features of the list and demonstrate how to add an
element to the list using the + operator, append( ), and insert ( ) methods.
Q11. Explain the importance of the following list methods:
remove( ) index( ) sum( ) count( ) pop( ) reverse( ) sort( )
Q13. Explain the concept of slicing and indexing in the list.
Q14. Define functions. Explain Python functions with parameters and return statements
Q15. Explain any 4 string Handling Functions.
Q16. Develop a Python program using the function to calculate the factorial of a number.
Q17. write a program to compute binomial coefficient given N and R.
Q18. WAP Using Python function with suitable parameters to generate first N Fibonacci numbers
Q19. WAP to demonstrate dive by zero error using exception handling.
Q20. Create a List of 10 elements, and demonstrate the following:
1. Delete an element in the list
2. Pop an element in the list
3. Remove an element in the list
4. Clear the elements in the list.