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

WGU Foundations of Programming Python Exam - Topic 4 Question 12 Discussion

Which terminal command is used to navigate to a different directory before running a Python script?
C) cd
A) move
B) goto
D) nav

WGU Foundations of Programming Python Exam - Topic 4 Question 12 Discussion

Actual exam question for WGU's Foundations of Programming Python exam
Question #: 12
Topic #: 4
[All Foundations of Programming Python Questions]

Which terminal command is used to navigate to a different directory before running a Python script?

Show Suggested Answer Hide Answer
Suggested Answer: C

The command cd means ''change directory.'' It is used in a terminal to move from one folder to another.

Example:

cd Desktop

After navigating to the correct folder, a Python script can be run with a command such as:

python script.py

Therefore, the correct answer isC. cd.


Contribute your Thoughts:

0/2000 characters
Maryann
4 days ago
"goto" seems like it could be a command, but I don't recall using it for navigation in the terminal.
upvoted 0 times
...
Teri
9 days ago
I remember something about "move," but that doesn't seem right for changing directories.
upvoted 0 times
...
Noble
14 days ago
I think the command is "cd," but I’m not completely sure. It sounds familiar from the practice questions.
upvoted 0 times
...

Save Cancel