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

1. Which module in Python is used for working with regular expressions?

  • regex
  • re
  • regexp
  • pattern
Show Answer Report

2. Which module provides access to mathematical functions like sqrt() and sin()?

  • calc
  • math
  • numpy
  • algebra
Show Answer Report

3. Which module is used for working with dates and times in Python?

  • time
  • date
  • datetime
  • calendar
Show Answer Report

4. Which module provides a way to use operating system dependent functionality like file operations?

  • system
  • os
  • file
  • sys
Show Answer Report

5. Which module is used for generating random numbers in Python?

  • rand
  • random
  • numpy
  • generate
Show Answer Report

6. Which module provides system-specific parameters and functions in Python?

  • system
  • os
  • sys
  • param
Show Answer Report

7. Which module is used for reading and writing CSV files in Python?

  • pandas
  • csv
  • excel
  • table
Show Answer Report

8. Which module provides support for JSON encoding and decoding?

  • js
  • json
  • javascript
  • encode
Show Answer Report

9. Which module is used for working with SQLite databases in Python?

  • database
  • sql
  • sqlite3
  • db
Show Answer Report

10. Which module provides an interface to the HTTP protocol for building web clients?

  • http
  • requests
  • urllib
  • web
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test