exam questions

Exam PT0-002 All Questions

View all questions & answers for the PT0-002 exam

Exam PT0-002 topic 1 question 428 discussion

Actual exam question from CompTIA's PT0-002
Question #: 428
Topic #: 1
[All PT0-002 Questions]

Which of the following would be the most efficient way to write a Python script that interacts with a web application?

  • A. Create a class for requests.
  • B. Write a function for requests.
  • C. Import the requests library.
  • D. Use the cURL OS command.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Snagggggin
3 months ago
Selected Answer: C
C. Import the requests library The requests library in Python makes it easy to send HTTP requests and handle responses. It's user-friendly and widely used for interacting with web applications.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago