Python Libraries and Modules
Python Libraries and Modules - Important Points
36. | Which library in Python is used for working with databases? |
---|
A. SQLite
B. MySQL
C. PostgreSQL
D. all of the above
View Answer Discuss Work SpaceAnswer: option d
Explanation:
There are several libraries used for working with databases in Python, including SQLite, MySQL, and PostgreSQL. All of these libraries provide a range of functions for connecting to and working with databases, as well as support for various database management systems.
37. | Which module in Python is used for working with regular expressions? |
---|
A. re
B. regex
C. pattern
D. all of the above
View Answer Discuss Work SpaceAnswer: option a
Explanation:
The re module in Python is used for working with regular expressions. It provides functions for searching and manipulating strings using regular expressions.
38. | Which library in Python is used for working with geographical data? |
---|
A. Geopandas
B. Folium
C. Cartopy
D. all of the above
View Answer Discuss Work SpaceAnswer: option d
Explanation:
There are several libraries used for working with geographical data in Python, including Geopandas, Folium, and Cartopy. All of these libraries provide a range of functions for visualizing and analyzing geographical data.
39. | Which module in Python is used for working with binary data? |
---|
A. struct
B. binascii
C. ctypes
D. all of the above
View Answer Discuss Work SpaceAnswer: option d
Explanation:
Python provides modules for working with binary data, including struct, binascii, and ctypes. These modules provide functions for manipulating binary data and working with low-level data structures.