Google It Support Professional Certificate · Free Practice Question Easy

Question 11

What is the purpose of the Python "requests" library?

  • A

    It is used for mathematical computations and data analysis.

  • B

    It is used for handling HTTP requests, allowing interaction with web services and APIs.

  • C

    It provides graphical user interface (GUI) components for Python applications.

  • D

    It is used for file input/output operations.

Reveal correct answer

Correct answer: B

Explanation

The "requests" library in Python is widely used for making HTTP requests. It simplifies the process of sending HTTP requests to web services and APIs, making it easier to interact with web-based resources from Python applications.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need