Standard Libraries Questions and Answers

Take Exam

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
Show Answer Report

12. Which module provides a high-level interface for file and directory operations?

  • fileops
  • shutil
  • files
  • directory
Show Answer Report

13. Which module provides access to some variables used by the interpreter?

  • interpreter
  • system
  • sys
  • env
Show Answer Report

14. Which module is used for logging in Python applications?

  • log
  • logging
  • logger
  • debug
Show Answer Report

15. Which module provides access to the command-line arguments passed to a Python script?

  • argparse
  • sys
  • argv
  • cli
Show Answer Report

16. Which module is used for parsing command-line options and arguments?

  • getopt
  • argparse
  • options
  • cli
Show Answer Report

17. Which module provides a way to create temporary files and directories?

  • tmp
  • temp
  • tempfile
  • temporary
Show Answer Report

18. Which module is used for working with email messages and MIME processing?

  • smtp
  • mail
  • email
  • mime
Show Answer Report

19. Which module provides a way to use the built-in HTTP server for development?

  • httpserver
  • server
  • http.server
  • webserver
Show Answer Report

20. Which module provides access to the Unicode character database?

  • unicode
  • charset
  • unicodedata
  • ucd
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test