0% found this document useful (0 votes)
75 views

Python-3rd Module Question Bank

Python
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
75 views

Python-3rd Module Question Bank

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

Subject: Introduction to Python Programming Subject Code: 22PLC15B/25

Third module Question Bank

1. With an example code explain join () and split () string methods.


2. Develop a program to accept a sentence from the user and display the longest word of that sentence along with
its length.
3. With code snippet, explain saving variable using the shelve module and PPrint Pformat () functions.
4. List out all the useful string methods which supports in python. Explain with an example for each method
5. Explain the different steps in project adding Bullet to wiki markup.
6. What are the key properties of a file? Explain in detail file reading / writing process with an example of python
program
7. Explain string slicing in python. show with examples
8. List and explain any four built in string manipulation functions supported by python
9. Write a python code to display the last six characters of the string “Make hay while the sun shines” to the
console.
10. Write a python program to accept a filename from the user (i) Display the first N-lines of the file (ii) Find the
frequency of occurrence of the word accepted from the user in the file
11. Explain with an example the syntax of read (), write () methods for a file.
12. Explain the different steps in project Password locker.
13. Explain copy () and paste () string functions with the pyperclip module.
14. How can you trim the whitespace characters from beginning and end of a string?
15. List and explain the ways to specify the file path and how to handle them using os.path module.
16. Explain how to find the size of file and display the contents of file. Write a program to calculate the total size of
all the files present in a folder specified by the user.
17. Explain the steps in project Generating Random Quiz Files
18. Explain the steps in project Multiclipboard

You might also like