FOUNDATIONS OF
PROGRAMMING
(PYTHON) PRACTICE
ASSESSMENT
Which Python data structure automatically prevents duplicate values
from being stored?
List
Tuple
Dictionary
Set - ANSWERS-Set
Which Python data structure cannot be modified after creation?
List
Dictionary
Tuple
Set - ANSWERS-Tuple
What must a developer do to run Python code written in a text editor?
Save the file and use a Python interpreter.
END OF
PAGE
1
, WGU E010 LATEST
FOUNDATIONS OF
PROGRAMMING
(PYTHON) PRACTICE
ASSESSMENT
Press a run button within the editor.
Upload the code to a web server.
Convert the code to machine language first. - ANSWERS-Save the file
and use a Python interpreter.
What advantage does an integrated terminal provide compared to using a
separate terminal application?
Faster code execution speed
Access to additional Python libraries
Eliminates need to switch between applications
Automatic syntax error detection - ANSWERS-Eliminates need to
switch between applications
Which action allows a Python script located in a different folder to be
executed in the terminal?
Use the edit command to open the script first
END OF
PAGE
2
, WGU E010 LATEST
FOUNDATIONS OF
PROGRAMMING
(PYTHON) PRACTICE
ASSESSMENT
Move the script to your desktop
Use the cd command to navigate to the script's directory
Rename the script to match the terminal's path - ANSWERS-Use the cd
command to navigate to the script's directory
Which terminal command is used to navigate to a different directory
before running a Python script?
move
goto
cd
nav - ANSWERS-cd
Which tool is used to execute Python code line-by-line interactively
within a terminal?
Python shell
Text editor
END OF
PAGE
3