0% found this document useful (0 votes)
4 views4 pages

Python Programming Questions

The document contains a comprehensive list of programming and theory questions related to Python programming. It includes tasks such as writing programs for string manipulation, file handling, and mathematical calculations, as well as theoretical concepts like OOP, exception handling, and data types. This serves as a guide for students to practice and understand various aspects of Python programming.

Uploaded by

tomaradhiyant
Copyright
© All Rights Reserved
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
0% found this document useful (0 votes)
4 views4 pages

Python Programming Questions

The document contains a comprehensive list of programming and theory questions related to Python programming. It includes tasks such as writing programs for string manipulation, file handling, and mathematical calculations, as well as theoretical concepts like OOP, exception handling, and data types. This serves as a guide for students to practice and understand various aspects of Python programming.

Uploaded by

tomaradhiyant
Copyright
© All Rights Reserved
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

Python Programming(BCC 402)

Programming Questions
1. Write a program to check whether a string is palindrome or not.

2. Develop a program to calculate the reverse of any entered number.

3. Write Python code to create a file “[Link]”, write data into it, and read the file.

4. Write a Python program to print star pattern using nested loops.

5. Write a Python program to generate Fibonacci Series.

6. Write a Python program to exchange first and last characters of a string.

7. Write a Python program to add an item in a tuple.

8. Write even/odd program using if-else.

9. Write program to print prime numbers between 1–50.

10. Write program to count vowels in a string.

11. Write program to merge two dictionaries.

12. Write student records into file using write() and writelines().

13. Write grading program using conditional statements.

14. Write program to calculate area of circle using functions.

15. Write program to replace characters in a string.

16. Write program to find difference between two sets.

17. Write program to reverse a tuple.

18. Write program to read last n lines from file using seek().

19. Write program to find all digits in a string using regular expressions.

20. Write program showing multiple inheritance.

21. Create a simple Tkinter window with label.

22. Design a basic calculator supporting addition, subtraction, multiplication, and division.

23. Write function to count frequency of each character in a string using dictionary.

24. Write program to reverse contents of a file character by character separated with commas.

25. Create pie chart using matplotlib.

26. Write program to validate email using regular expressions.

27. Write program to create hollow pyramid pattern.

28. Write function to find longest word in a list.


29. Write program to read CSV file and display rows above threshold value.

30. Write program to calculate average marks from [Link] file.

31. Write program to check even or odd number using if-else.

32. Write program to print prime numbers between 1 to 50 using for loop.

33. Write program to count vowels in a string.

34. Write program to merge two dictionaries.

35. Write program to write student records into a file.

36. Write program to grade students using elif.

37. Write program to sum elements of a list.

38. Write function to calculate area of circle.

39. Write program to replace characters in a string.

40. Write program to find difference between two sets.

41. Write program to reverse a tuple.

42. Write program to read last n lines from a file.

43. Write program to find all digits in a string using re module.

44. Write Tkinter program to create simple window with label.

Theory Questions
1. Explain Programming Cycle for Python in detail.

2. Describe List Slicing with suitable example.

3. Explain how to import modules in Python.

4. Differentiate between Python Arrays and Lists.

5. Define floor division with example.

6. Explain difference between append() and extend().

7. What is Dictionary in Python?

8. Explain OOP in Python with example.

9. Explain for loop and while loop with flowchart and syntax.

10. Explain continue, break, and pass statements.

11. Explain List Comprehension with example.

12. Explain Unpacking Sequences and Mutable Sequences.

13. Explain lambda function and map() function.

14. Discuss types of argument passing methods in Python.


15. Demonstrate file handling procedure in Python.

16. Explain Exception Handling with try, except, finally.

17. Explain Tuples and Unpacking Sequences.

18. Explain File Input and Output operations.

19. Explain why Python is interpreted language.

20. Explain Merge List and Merge Sort.

21. Explain Python variables and numeric data types.

22. Differentiate between for loop and while loop.

23. Explain string slicing with example.

24. Differentiate between Tuple and List.

25. Define Dictionary with manipulation example.

26. Explain read() and readline().

27. Explain Encapsulation in OOP.

28. Explain Exception Handling with example.

29. Explain purpose of with statement.

30. Explain Lambda Functions.

31. Explain why NumPy is used.

32. Explain Membership and Identity Operators.

33. Explain Operator Precedence, Python Indentation, and Type Conversion.

34. Explain loops and types of loops in Python.

35. Explain built-in methods of Dictionary.

36. Discuss file modes in Python.

37. Discuss role of event handling in Tkinter.

38. Explain basic operators and data types in Python.

39. Explain pass, continue, and break statements.

40. Discuss string operations and built-in functions.

41. Explain list and dictionary built-in functions.

42. Explain Python blocks and conditional statements.

43. Explain functions in Python.

44. Explain string manipulation methods.

45. Explain sets and their operations.


46. Discuss tuple and list slicing.

47. Explain seek() function in file handling.

48. Discuss Tkinter widgets.

You might also like