1. Home
  2. Data Science
  3. Python
  4. Which module offers object-oriented filesystem paths in…

Added 25 Nov 2026

Which module offers object-oriented filesystem paths in Python?

  1. pathlib Correct answer
  2. path
  3. fs
  4. filepath

Correct answer

A. pathlib

6 views

MCQSEXAM

Explanation

pathlib.Path provides cross-platform path manipulation.

Reference

Asked in: Python Interview File Handling

https://docs.python.org/3/tutorial/inputoutput.html

Preparing for an exam?

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs