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
1. Which module in Python is used for working with regular expressions?
- regex
- re
- regexp
- pattern
2. Which module provides access to mathematical functions like sqrt() and sin()?
- calc
- math
- numpy
- algebra
3. Which module is used for working with dates and times in Python?
- time
- date
- datetime
- calendar
4. Which module provides a way to use operating system dependent functionality like file operations?
- system
- os
- file
- sys
5. Which module is used for generating random numbers in Python?
- rand
- random
- numpy
- generate
6. Which module provides system-specific parameters and functions in Python?
- system
- os
- sys
- param
7. Which module is used for reading and writing CSV files in Python?
- pandas
- csv
- excel
- table
8. Which module provides support for JSON encoding and decoding?
- js
- json
- javascript
- encode
9. Which module is used for working with SQLite databases in Python?
- database
- sql
- sqlite3
- db
10. Which module provides an interface to the HTTP protocol for building web clients?
- http
- requests
- urllib
- web