Python Libraries and Modules
Python Libraries and Modules - Important Points
21. | Which library in Python is used for machine learning? |
---|
A. TensorFlow
B. Keras
C. Scikit-learn
D. All of the above
View Answer Discuss Work SpaceAnswer: option d
Explanation:
There are several libraries used for machine learning in Python, including TensorFlow, Keras, and Scikit-learn. All of these libraries provide a range of tools and functions for building and training machine learning models.
22. | 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.
23. | Which library in Python is used for working with dates and times? |
---|
A. datetime
B. time
C. calendar
D. all of the above
View Answer Discuss Work SpaceAnswer: option a
Explanation:
The datetime module in Python is used for working with dates and times. It provides functions for creating, manipulating, and formatting dates and times, as well as support for time zones and daylight saving time.
24. | Which library in Python is used for working with scientific computing? |
---|
A. NumPy
B. SciPy
C. Pandas
D. all of the above
View Answer Discuss Work SpaceAnswer: option d
Explanation:
There are several libraries used for scientific computing in Python, including NumPy, SciPy, and Pandas. All of these libraries provide a range of tools and functions for working with numerical data, including support for linear algebra, optimization, and statistics.
25. | Which module in Python is used for working with compressed files? |
---|
A. gzip
B. zipfile
C. tarfile
D. all of the above
View Answer Discuss Work SpaceAnswer: option d
Explanation:
Python provides modules for working with compressed files, including gzip, zipfile, and tarfile. These modules provide functions for reading and writing compressed files in various formats.