You are on page 1of 2

BHAGWAN MAHAVIR UNIVERSITY

QUESTION BANK (UNIT I and II)


Subject : Python Programming Subject Code: 1010206302

UNIT – 1 :Introduction to Python: Data Types and Expression: Repetition


Structures:

1. What are the features and applications of Python?

2. Explain about the input and output statements or methods with example.

3. Explain about the Single-Valued data types in python.

4. What is Indentation? Explain with example. Explain variable assignment with suitable
example.

5. What is data type? List out the types of data types with example.

6. Explain briefly about the Multi-Valued Data types with example.

7. Enumerate the list and its methods with example.

8. Explain the string and its methods with example.

10. Differentiate between the tuple and sets in python.

11. Define Variable and mention rules for choosing names of Variable.

12. Implement the python program to calculate total and average marks based on input.

13. List various types of operators in Python and write any 4 types of operators.

14. Explain in detail about Control flow structures in python.

15. Outline with an example the assignment and bitwise operators supported in Python.

16. Write a Python program to print prime number series up to N.

17. Arithmetic operations (Addition, Subtraction, Multiplication, and Division) on integers.


Input the two integer values and operator for performing arithmetic operation through
keyboard.
18. Write a python program to find the given number is odd or even.

19. Explain break and continue statement with the help of for loop with an example.

20. Explain the syntax of the following statements

i) for loop ii) while loop iii) if - else iv) if-elif-else

21. Develop a Python program to find the largest among three numbers.

22. Implement Python program to find sum of natural numbers.

23. What are the differences between C and Python?

24. What is the difference between = = and is operator in Python.

25. Explain different types of comments in python.

26. What is the difference between compiler and Interpreter? Explain How python interpreter

Works.

27. Which are the different types of operators in python language? Explain membership and

identity operators with examples.

28. Describe following string functions with syntax: strip(), islower(), isupper().

29. What are the key features of Python?

30. Explain while loop & for loop with syntax and example in detail.

31. Explain usage of continue, break keyword in python.

You might also like