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

Python QB

The document is a Python question bank containing 20 questions covering various topics such as string literals, file handling, exception handling, and object-oriented programming. It includes practical programming tasks such as creating a backup of a folder and calculating student scores. The questions are designed to test knowledge and skills in Python programming.

Uploaded by

varshithm369
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)
2 views1 page

Python QB

The document is a Python question bank containing 20 questions covering various topics such as string literals, file handling, exception handling, and object-oriented programming. It includes practical programming tasks such as creating a backup of a folder and calculating student scores. The questions are designed to test knowledge and skills in Python programming.

Uploaded by

varshithm369
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

A Python Question Bank

1. What are string literals?


2. What is Indexing and slicing strings?
3. Explain about useful string methods with examples.
4. What are the steps involved in adding bullets to Wiki markup?
5. What is absolute path?
6. What is relative path?
7. What is cwd and home directory?
8. Explain about file reading and writing process with example.
9. How to get file size and contents of the folder.
10. What is saving variables with shelve module?
11. What is saving variables with [Link]()?
12. Discuss about permanently deleting files and folders.
. 13. Discuss in detail about shutil module
14 Explain about programmer defined -types, attributes, classes and objects.
15. Discuss about prototyping Vs planning.
16. What is exception handling? Explain raise exceptions and assertions.
17. With example explain operator overloading.
18. Write a python program to back up a given folder into a zip file by using relevant modules and
suitable methods.
19. Write a python program that uses class student which prompts the user to enter marks in three
subjects and calculates total marks, percentage and displays the score card details.
[Link] a python program to add two complex numbers.

You might also like