ACTUAL EXAM| E010 FOUNDATIONS OF
PROGRAMMING (PYTHON) OA FINAL EXAM WITH
COMPLETE REAL EXAM QUESTIONS AND CORRECT
VERIFIED ANSWERS/ ALREADY GRADED A+
Which keyword is used to exit a loop prematurely in Python?
1. return
2. break
3. stop
4. end - Correct Answer - break
Which Python data structure automatically prevents duplicate values
from being stored?
1. List
2. Tuple
3. Dictionary
4. Set - Correct Answer - Set
Which Python data structure cannot be modified after creation?
1. List
2. Dictionary
3. Tuple
pg. 1
, 4. Set - Correct Answer - Tuple
What must a developer do to run Python code written in a text editor?
1. Save the file and use a Python interpreter.
2. Press a run button within the editor.
3. Upload the code to a web server.
4. Convert the code to machine language first. - Correct Answer - Save
the file and use a Python interpreter.
Which terminal command is used to navigate to a different directory
before running a Python script?
1. move
2. goto
3. cd
4. nav - Correct Answer - cd
Which tool is used to execute Python code line-by-line interactively
within a terminal?
1. Python shell
2. Text editor
3. File explorer
4. Debugger - Correct Answer - Python shell
pg. 2