Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Cisco 200-901 Exam - Topic 6 Question 119 Discussion

Posted by Rodrigo on Oct 02, 2026 at 04:48 AM

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?

Suggested Answer: B

The pip freeze command is used to output installed packages in the current environment and their versions. The > operator redirects this output to a file, in this case, requirements.txt.

pip freeze: Outputs the list of installed packages and their versions.

Redirection: The > operator is used to redirect the output to a file.

Option B is correct as it uses the > operator to redirect the output of pip freeze to requirements.txt.


Python Packaging Documentation: Using Pip Freeze

Get Premium 200-901 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
5 comments · newest first
CR
Cristy 5 days ago
It's definitely B) pip freeze > requirements.txt
FI
Filiberto 10 days ago
I thought it was B too, but I keep mixing up the symbols. I hope I remember correctly during the exam!
CU
Curtis 15 days ago
I’m a bit confused about the options. I feel like I’ve seen something like this before, but I can’t recall if it was pip freeze or something else.
JO
Joesph 20 days ago
I remember practicing a similar question, and I think the right command is to use the greater than symbol for output. So, B seems right.
RE
Rebbecca 26 days ago
I think it might be option B, but I’m not entirely sure if the syntax is correct for redirecting output.
0/2000 characters

Save Cancel