Python Libraries and Modules
Python Libraries and Modules - Important Points
26. | Which library in Python is used for working with APIs? |
---|
A. Requests
B. Flask
C. Django
D. all of the above
View Answer Discuss Work SpaceAnswer: option a
Explanation:
The Requests library in Python is used for working with APIs. It provides functions for making HTTP requests, including support for various authentication methods and request types.
27. | Which module in Python is used for working with random numbers? |
---|
A. random
B. numpy.random
C. scipy.random
D. all of the above
View Answer Discuss Work SpaceAnswer: option d
Explanation:
Python provides modules for working with random numbers, including random, numpy.random, and scipy.random. These modules provide functions for generating random numbers and distributions.
28. | Which library in Python is used for working with audio files? |
---|
A. PyDub
B. librosa
C. audioread
D. all of the above
View Answer Discuss Work SpaceAnswer: option d
Explanation:
There are several libraries used for working with audio files in Python, including PyDub, librosa, and audioread. All of these libraries provide a range of functions for reading, writing, and manipulating audio files in various formats.
29. | Which module in Python is used for working with email? |
---|
A. smtplib
B. imaplib
C. poplib
D. all of the above
View Answer Discuss Work SpaceAnswer: option d
Explanation:
Python provides modules for working with email, including smtplib, imaplib, and poplib. These modules provide functions for sending and receiving email messages, as well as support for various email protocols.
30. | Which library in Python is used for working with 3D graphics? |
---|
A. VPython
B. PyOpenGL
C. Pygame
D. all of the above
View Answer Discuss Work SpaceAnswer: option d
Explanation:
There are several libraries used for working with 3D graphics in Python, including VPython, PyOpenGL, and