exam questions

Exam 200-901 All Questions

View all questions & answers for the 200-901 exam

Exam 200-901 topic 1 question 101 discussion

Actual exam question from Cisco's 200-901
Question #: 101
Topic #: 1
[All 200-901 Questions]


Refer to the exhibit. A developer just finished testing a Python script and wants to save the list of packages and versions installed on the current machine. The developer must make sure that it will not cause any issues if tested on another device due to different library versions. Which line of code needs to be placed on the snippet where the code is missing?

  • A. pip freeze 2> requirements.txt
  • B. pip freeze > requirements.txt
  • C. pip freeze => requirements.txt
  • D. pip freeze | requirements.txt
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
macxsz
1 year, 1 month ago
Selected Answer: B
Use > to write to a file
upvoted 1 times
...
Toxkalcan
1 year, 1 month ago
Selected Answer: B
Answer is B pip freeze requirements.txt ile ilgili görsel sonucu The most common command is pip freeze > requirements. txt , which records an environment's current package list into requirements. txt. If you want to install the dependencies in a virtual environment, create and activate that environment first, then use the Install from requirements.
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 ...