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/ 1
Bapuji Educational Association (Regd.
Bapuji Institute of Engineering and Technology, Davangere-577004
Introduction to Python Programming (BCSPLC105A)
Question Bank Module1 1. List and explain math operators used in Python with examples. 2. Write a Python program to check whether the number is even or odd. 3. Explain str( ), float( ) and int( ) functions. 4. Demonstrate syntax and examples of print ( ), input ( ), len ( ), and string replication. 5. Explain if, elif, and else statements in Python with syntax, flowchart and examples. 6. Explain looping control statements with syntax and control flow diagrams. 7. What is the need for precedence and associativity in Python? Illustrate the rules of precedence with suitable examples. 8. Explain Boolean and Comparison operators. 9. With Python programming examples to each, explain the syntax and control flow diagrams of break and continue statements. 10. Explain two ways of importing modules into applications in Python with syntax and suitable programming examples. 11. Write a function to calculate the factorial of a number. Develop a program to compute the binomial coefficient (Given N and R). 12. Develop a program to generate a Fibonacci square of length (N). Read N from the console. 13. Write a program to print even numbers using step size in range ( ). 14. Develop a program to read a person's name and year of birth and print whether the person is a senior citizen or not. 15. Develop a Python program to calculate the area of a rectangle and triangle and print the result. 16. Explain FOUR scope rules of variables in Python.