Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
5 views1 page

Sodapdf

Uploaded by

rummanfurqan827
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)
5 views1 page

Sodapdf

Uploaded by

rummanfurqan827
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
You are on page 1/ 1

Introduction To Python Programming - VTU Important Questions

1. Explain string concatenation and string replication operation with an example.


2. Illustrate the use of break and continue statement with example.
3. Write a Python program to check whether the given number is positive, negative or zero.
4. What are functions in Python and how they are defined? Use it to modularize code.
5. Explain the local and global scope with local and global variables.
6. Write a program to generate a Fibonacci sequence of given length from console.
7. Explain if, else if, else statements in Python with examples.
8. What are user defined functions, how can we pass parameters? Explain with examples.
9. What are lists in Python and how are they used to store and manipulate collections of data?
10. Explain any four built-in methods available for working with lists.
11. Differentiate between lists and dictionaries.
12. Write a program to read from console and create a list.
13. Develop a program to print the mean of numbers.
14. Explain with example: keys, values, and items methods of dictionaries.
15. Write a program to add elements into dictionary using while loop.
16. Explain different ways to delete an element from a list with suitable Python syntax and examples.
17. Explain the following list methods with examples: index, append, insert, sort, reverse.
18. Explain random.choice and random.shuffle functions with lists or sets.
19. Explain any five built-in methods available for working with strings with examples.
20. Develop a program to read multiple digit numbers as characters from console.
21. Develop a program to print the frequency of each digit with suitable example.
22. Explain the file reading and writing process with suitable example.
23. Illustrate the role of shelve module in working with files.
24. Write a program to accept a string and display total number of alphabets.
25. Explain how to save variables with the shelve module.
26. Explain the following string methods with example: isalpha, isalnum, isdecimal, isspace, istitle.
27. Explain join and split methods with examples.
28. Explain the functions of shelve module with examples.
29. What is meant by complexing files? Explain reading, extracting, and creating zip files with code
snippet.
30. Explain the buttons in the debug control window.
31. Write a note on raising exceptions.
32. Describe logging levels used in Python to categorize log messages with examples.
33. Show how files and folders can be permanently deleted.
34. How do you copy files and folders using shelve module? Explain in detail.
35. List out the differences between shelve.copy and shelve.copytree methods.
36. What do you mean by class, object, and attributes? Explain with example.
37. Illustrate the concept of inheritance and class diagrams with example.
38. Write a program to explain pure function and modifier function.
39. List and explain any four object-oriented characteristics possessed by Python.
40. Briefly discuss the importance of __init__ and __str__ methods with examples.
41. Explain operator overloading with examples.
42. Mention any operators with respect to special functions to be overloaded in Python.
43. Explain shallow copy and deep copy with example.
44. Explain printing of objects with an example.

You might also like