Python Libraries and Modules
Python Libraries and Modules - Important Points
31. | Which module in Python is used for working with CSV files? |
---|
A. csv
B. pandas
C. numpy
D. all of the above
View Answer Discuss Work SpaceAnswer: option a
Explanation:
The csv module in Python is used for working with CSV (comma-separated values) files. It provides functions for reading and writing CSV files, as well as support for various CSV file formats.
32. | Which library in Python is used for working with web scraping? |
---|
A. BeautifulSoup
B. Scrapy
C. Selenium
D. all of the above
View Answer Discuss Work SpaceAnswer: option d
Explanation:
There are several libraries used for web scraping in Python, including BeautifulSoup, Scrapy, and Selenium. All of these libraries provide a range of functions for extracting data from web pages and web applications.
33. | Which module in Python is used for working with JSON data? |
---|
A. json
B. simplejson
C. ujson
D. all of the above
View Answer Discuss Work SpaceAnswer: option d
Explanation:
Python provides modules for working with JSON (JavaScript Object Notation) data, including json, simplejson, and ujson. These modules provide functions for encoding and decoding JSON data, as well as support for various JSON data formats.
34. | Which library in Python is used for working with images? |
---|
A. Pillow
B. OpenCV
C. scikit-image
D. all of the above
View Answer Discuss Work SpaceAnswer: option d
Explanation:
There are several libraries used for working with images in Python, including Pillow, OpenCV, and scikit-image. All of these libraries provide a range of functions for reading, writing, and manipulating images in various formats.
35. | Which module in Python is used for working with command-line arguments? |
---|
A. argparse
B. optparse
C. getopt
D. all of the above
View Answer Discuss Work SpaceAnswer: option a
Explanation:
The argparse module in Python is used for working with command-line arguments. It provides functions for parsing and handling command-line arguments and options, as well as support for various argument and option types.