1. Home
  2. Data Science
  3. Python
  4. What does the os module provide in Python?

Added 25 Nov 2026

What does the os module provide in Python?

  1. Operating system interfaces such as paths and environment variables Correct answer
  2. Object storage
  3. Optimised sorting
  4. Online services

Correct answer

A. Operating system interfaces such as paths and environment variables

6 views

MCQSEXAM

Explanation

os offers file, directory and process functionality.

Reference

Asked in: Python Interview Advanced Python

https://docs.python.org/3/library/index.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