Standard Libraries Questions and Answers
Python Programming - Standard Libraries Questions with Answers cover modules like `os`, `sys`, and `math`. These Python Standard Libraries Questions are helpful for TCS, Infosys, and Bank Clerk exams to test knowledge of Python’s built-in functionality and modules
Standard Libraries
Showing 10 of
25 questions
11. Which module is used for data compression and archiving in Python?
- compress
- zip
- zipfile
- archive
12. Which module provides a high-level interface for file and directory operations?
- fileops
- shutil
- files
- directory
13. Which module provides access to some variables used by the interpreter?
- interpreter
- system
- sys
- env
14. Which module is used for logging in Python applications?
- log
- logging
- logger
- debug
15. Which module provides access to the command-line arguments passed to a Python script?
- argparse
- sys
- argv
- cli
16. Which module is used for parsing command-line options and arguments?
- getopt
- argparse
- options
- cli
17. Which module provides a way to create temporary files and directories?
- tmp
- temp
- tempfile
- temporary
18. Which module is used for working with email messages and MIME processing?
- smtp
- mime
19. Which module provides a way to use the built-in HTTP server for development?
- httpserver
- server
- http.server
- webserver
20. Which module provides access to the Unicode character database?
- unicode
- charset
- unicodedata
- ucd