Quiz: Python Debugging

Main.PythonQuiz11 History

Hide minor edits - Show changes to output

May 17, 2022, at 03:58 AM by 136.36.4.38 -
Added lines 1-87:
(:title Quiz: Python Debugging:)
(:keywords quiz, test, Python, debug, IDE, editor, introduction, course:)
(:description Learning assessment on Python debugging to remove syntax and logical program errors.:)

----

'''1.''' What is an IDE for programming?

->'''A.''' I Don't knowE

-->(:toggle hide q1a button show="Select":)
(:div id=q1a:)
-->%red%Incorrect.%%
(:divend:)

->'''B.''' Integrated Development Environment

-->(:toggle hide q1b button show="Select":)
(:div id=q1b:)
-->%blue%Correct.%% An IDE typically has a text editor, file list in a project structure, debug capability to step through code, syntax highlighting, function documentation, and other features to help with programming specifics.
(:divend:)

->'''C.''' Integrated Drive Electronics

-->(:toggle hide q1c button show="Select":)
(:div id=q1c:)
-->%red%Incorrect.%%
(:divend:)

----

'''2.''' What are common programming environments for Python? Select all that apply.

->'''A.''' Jupyter Notebook

-->(:toggle hide q2a button show="Select":)
(:div id=q2a:)
-->%blue%Correct.%% Jupyter notebooks run through a web-browser interface with code and markdown (comment) cells.
(:divend:)

->'''B.''' Python script with .py extension

-->(:toggle hide q2b button show="Select":)
(:div id=q2b:)
-->%blue%Correct.%% Python programs with a ''.py'' extension can be run from a command prompt with ''python program_name.py''
(:divend:)

->'''C.''' VSCode with Python or Notebook Extension

-->(:toggle hide q2c button show="Select":)
(:div id=q2c:)
-->%blue%Correct.%% VSCode can run Python and many other programming languages. The language is configured the first time a ''.py'' (python) or ''.ipynb'' (IPython notebook) is opened in VSCode.
(:divend:)

->'''D.''' Spyder

-->(:toggle hide q2d button show="Select":)
(:div id=q2d:)
-->%blue%Correct.%% Spyder is an IDE that is packaged with the Anaconda distribution.
(:divend:)

->'''E.''' PyCharm

-->(:toggle hide q2e button show="Select":)
(:div id=q2e:)
-->%blue%Correct.%% Python IDE available from JetBrains.
(:divend:)

----

'''3.''' Which types of errors are easier to identify?

->'''A.''' Syntax programming errors

-->(:toggle hide q3a button show="Select":)
(:div id=q3a:)
-->%blue%Correct.%% The Python interpreter can typically pinpoint the location in the code or nearest line (missing parenthesis, misspelled functions) where there is an error.
(:divend:)

->'''B.''' Logical programming errors

-->(:toggle hide q3b button show="Select":)
(:div id=q3b:)
-->%red%Incorrect.%% Logical errors are not typically caught by the program because it often runs to a successful, yet incorrect, result.
(:divend:)

----