0% found this document useful (0 votes)
3 views2 pages

Copying Files and Folders, Moving and Renaming Files and Folders, Permanently Deleting Files and Folders, Safe Deletes With The Send2trash Module)

The document contains a list of assignment questions covering various topics in Python, including file handling, path management, modules like os and shutil, exception handling, logging, and object-oriented programming concepts. It asks for definitions, differentiations, explanations with examples, and algorithm writing related to these topics. The questions aim to assess understanding of Python programming and its functionalities.

Uploaded by

ppl.gecbidar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

Copying Files and Folders, Moving and Renaming Files and Folders, Permanently Deleting Files and Folders, Safe Deletes With The Send2trash Module)

The document contains a list of assignment questions covering various topics in Python, including file handling, path management, modules like os and shutil, exception handling, logging, and object-oriented programming concepts. It asks for definitions, differentiations, explanations with examples, and algorithm writing related to these topics. The questions aim to assess understanding of Python programming and its functionalities.

Uploaded by

ppl.gecbidar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Assignment questions.

1.Define terms.i file ii.filename iii.path iv folder v .current working directory vi home
directory
2.Differentiate current working directory and home directory
3.Differentitae Relative path and absolute path

4.Explain with example


i.os.makedirs()
ii. os.path.abspath(path).
iii., os.path.isabs(path)
iv.os.path.relpath(path, start)
v. Calling os.path.dirname(path)
vi. os.path.basename(path)
vii. os.path.split()
viii. os.path.getsize(path)
ix. os.listdir(path)
x. os.path.join()
xi. os.path.basename

Or explain os module .

5.Explain permanent delete and safe delete with a suitable Python programming
example to each.

6.explain path validity functions

7. explain file open(),read() and write () functions with example.

8.explain shelve module .

9. explain pprint.pformat() function with example

10.Explain shutil module.( Copying Files and Folders, Moving and Renaming Files
and Folders, Permanently Deleting Files and Folders, Safe Deletes with the
send2trash Module)
11.explain os.walk () with example
12. What is the use of ZIP? how to create a ZIP folder explain,read and write into zip
files.

13. wite an algorithm for implement multi clipboard functionality


14.explain Raising an excetion with example

15 Explain the role of Assertions in Python with a suitable program.

16 What is logging? how this would be used to debug the python program?
or Explain the support for Logging with logging module in Python.

17.explain what logging levels.


18.explain traceback method of debugging.

19.explain breakpoints with example.


20.Define i.class ii.object,iii.attributes iv.polymorphism.v operator overloading
21.Explain the methods __init__ and __str__ with suitable code example to
each.
22 Explain the following with syntax and suitable code snippet:
i) Class definition ii) instantiation iii) passing an instance (or objects) as an
argument iv) instances as return values.

23 Define pure function and modifier. Explain the role of pure functions and
modifiers in application development with suitable python programs.
24.explain deep copy and shallow copy with example
25.differentiate methods and functions.
26 .explain Type-based dispatch in Python

You might also like