This assessment will help determine what additional practice you could benefit from as you continue your Python learning path. This is an anonymous, self-reported assessment and it is in your best interest to answer honestly and without looking up answers. If you aren't sure of an answer, you may select //I don't know//. This assessment is not a measure of intelligence or skill, but rather is a method for identifying gaps in your pre-existing knowledge and to offer recommendations for practice.
At the end of this assessment, you will be provided with recommended practice lessons.
''Important:'' You will not be able to save your progress and return to this assessment later. Please allot yourself at least 30 minutes to complete this self-assessment.
[[Click here to begin the assessment|Q1]]
<!--
For QA/QC:
Current number correct for TLO1: $tlo1
Current number correct for TLO2: $tlo2
Current number correct for TLO3: $tlo3
Current number correct for TLO4: $tlo4
-->
(set: $tlo1 to 0)
(set: $tlo2 to 0)
(set: $tlo3 to 0)
(set: $tlo4 to 0)
(set: $qnum to 0)
(set: $qtotal to 26)
(set: $qnum to it +1)
Question $qnum of $qtotal
You are tasked with creating a variable called <code>name</code> with a value set to the string <code>Aaron</code>. Select the correct Python 3 syntax for this variable assignment.
(link: "A. <code>set var name<br> Name is 'Aaron'</code>")[(goto: "Q"+(text:$qnum+1))]
(link: "B. <code>'Aaron' = name</code>")[(goto: "Q"+(text:$qnum+1))]
(link: "C. <code>name = 'Aaron'</code>")[(set: $tlo1 to it + 1)(goto: "Q"+(text:$qnum+1))]
(link: "D. <code>name == 'Aaron'</code>")[(goto: "Q"+(text:$qnum+1))]
(link: "I don't know.")[(goto: "Q"+(text:$qnum+1))]
<!--
For QA/QC:
Current number correct for TLO1: $tlo1
Current number correct for TLO2: $tlo2
Current number correct for TLO3: $tlo3
Current number correct for TLO4: $tlo4
-->(set: $qnum to it +1)
Question $qnum of $qtotal
Of the descriptions below, select those that are appropriate use cases for creating a user-defined function:
I. Reusing code in different applications
II. Modularizing large programs
III. To store input variables for use later in a program
(link: "A. I")[(goto: "Q"+(text:$qnum+1))]
(link: "B. II")[(goto: "Q"+(text:$qnum+1))]
(link: "C. III")[(goto: "Q"+(text:$qnum+1))]
(link: "D. I and II")[(set: $tlo1 to it + 1)(goto: "Q"+(text:$qnum+1))]
(link: "E. I and III ")[(goto: "Q"+(text:$qnum+1))]
(link: "F. II, and III ")[(goto: "Q"+(text:$qnum+1))]
(link: "G. I, II, and III")[(goto: "Q"+(text:$qnum+1))]
(link: "I don't know.")[(goto: "Q"+(text:$qnum+1))]
<!--
For QA/QC:
Current number correct for TLO1: $tlo1
Current number correct for TLO2: $tlo2
Current number correct for TLO3: $tlo3
Current number correct for TLO4: $tlo4
-->(set: $qnum to it +1)
Question $qnum of $qtotal
Select the option that will result in a syntax error when executing the function <code>print()</code>.
(link: "A. <code>print (name)</code>")[(set: $tlo1 to it + 1)(goto: "Q"+(text:$qnum+1))]
(link: "B. <code>print(name)</code>")[(goto: "Q"+(text:$qnum+1))]
(link: "C. <code>print('name')</code>")[(goto: "Q"+(text:$qnum+1))]
(link: "D. <code>print(1 + 2)</code>")[(goto: "Q"+(text:$qnum+1))]
(link: "I don't know.")[(goto: "Q"+(text:$qnum+1))]
<!--
For QA/QC:
Current number correct for TLO1: $tlo1
Current number correct for TLO2: $tlo2
Current number correct for TLO3: $tlo3
Current number correct for TLO4: $tlo4
-->(set: $qnum to it +1)
Question $qnum of $qtotal
Select the best description of a <b>list</b> in Python
(link: "A. A set of key-value pairs in a single variable")[(goto: "Q"+(text:$qnum+1))]
(link: "B. A mechanism for storing multiple values in a single variable")[(set: $tlo1 to it + 1)(goto: "Q"+(text:$qnum+1)))]
(link: "C. A sorted collection of strings that describe a variable")[(goto: "Q"+(text:$qnum+1))]
(link: "D. A mechanism for storing an authoritative dataset")[(goto: "Q"+(text:$qnum+1))]
(link: "I don't know.")[(goto: "Q"+(text:$qnum+1))]
<!--
For QA/QC:
Current number correct for TLO1: $tlo1
Current number correct for TLO2: $tlo2
Current number correct for TLO3: $tlo3
Current number correct for TLO4: $tlo4
-->(set: $qnum to it +1)
Question $qnum of $qtotal
Select the output of this code:
<code>colors =` ['red', 'orange', 'yellow', 'green', 'blue', 'purple']`
colors`[2:3]`</code>
(link: "A. <code>`[`'orange', 'yellow'`]`</code>")[(goto: "Q"+(text:$qnum+1))]
(link: "B. <code>`[`'orange'`]`</code>")[(goto: "Q"+(text:$qnum+1))]
(link: "C. <code>`[`'yellow'`]`</code>")[(set: $tlo1 to it + 1)(goto: "Q"+(text:$qnum+1))]
(link: "D. <code>`['yellow', 'green']`</code>")[(goto: "Q"+(text:$qnum+1))]
(link: "I don't know.")[(goto: "Q"+(text:$qnum+1))]
<!--
For QA/QC:
Current number correct for TLO1: $tlo1
Current number correct for TLO2: $tlo2
Current number correct for TLO3: $tlo3
Current number correct for TLO4: $tlo4
-->(set: $qnum to it +1)
Question $qnum of $qtotal
Select the value of the variable <code>time</code> after this code is executed:
<code>time = 1
if time > 100:
 time = time/10
else:
 time = time*10</code>
(link: "A. 0.1")[(goto: "Q"+(text:$qnum+1))]
(link: "B. 1")[(goto: "Q"+(text:$qnum+1))]
(link: "C. 10")[(set: $tlo1 to it + 1)(goto: "Q"+(text:$qnum+1)))]
(link: "D. 100")[(goto: "Q"+(text:$qnum+1))]
(link: "I don't know")[(goto: "Q"+(text:$qnum+1))]
<!--
For QA/QC:
Current number correct for TLO1: $tlo1
Current number correct for TLO2: $tlo2
Current number correct for TLO3: $tlo3
Current number correct for TLO4: $tlo4
-->(set: $qnum to it +1)
Question $qnum of $qtotal
Select the value of the variable <code>i</code> after this code is executed:
<code>count = [0, 1, 2, 3, 4, 5]
for i in count:
 count[i] = i*10</code>
(link: "A. 5")[(set: $tlo1 to it + 1)(goto: "Q"+(text:$qnum+1))]
(link: "B. 6")[(goto: "Q"+(text:$qnum+1))]
(link: "C. 50")[(goto: "Q"+(text:$qnum+1))]
(link: "D. 60")[(goto: "Q"+(text:$qnum+1))]
(link: "I don't know.")[(goto: "Q"+(text:$qnum+1))]
<!--
For QA/QC:
Current number correct for TLO1: $tlo1
Current number correct for TLO2: $tlo2
Current number correct for TLO3: $tlo3
Current number correct for TLO4: $tlo4
-->(set: $qnum to it +1)
Question $qnum of $qtotal
Which line of code in the following code sample contains a syntax error?
<a href="" onclick="window.open('elo1i_q9.png','newwindow','width=900,height=450');return false;"><img src="elo1i_q9.png" width="396"></a>
<i>Click to enlarge</i>
(link: "A. 1")[(goto: "Q"+(text:$qnum+1))]
(link: "B. 2")[(goto: "Q"+(text:$qnum+1))]
(link: "C. 4")[(goto: "Q"+(text:$qnum+1))]
(link: "D. 5")[(goto: "Q"+(text:$qnum+1))]
(link: "E. 7")[(goto: "Q"+(text:$qnum+1))]
(link: "F. 8")[(goto: "Q"+(text:$qnum+1))]
(link: "G. 9")[(set: $tlo1 to it + 1)(goto: "Q"+(text:$qnum+1))]
(link: "H. 10")[(goto: "Q"+(text:$qnum+1))]
(link: "I don't know.")[(goto: "Q"+(text:$qnum+1))]
<!--
For QA/QC:
Current number correct for TLO1: $tlo1
Current number correct for TLO2: $tlo2
Current number correct for TLO3: $tlo3
Current number correct for TLO4: $tlo4
-->(set: $qnum to it +1)
Question $qnum of $qtotal
Which of the following best describes the Python interpreter?
(link: "A. The executable program that translates Python code into actions performed by computer hardware")[(set: $tlo2 to it + 1)(goto: "Q"+(text:$qnum+1))]
(link: "B. The executable program that locates functions for use in other programs")[(goto: "Q"+(text:$qnum+1))]
(link: "C. The Python code that imports Python packages")[(goto: "Q"+(text:$qnum+1))]
(link: "D. The Python code that translates operating system tasks into human-readable programs")[(goto: "Q"+(text:$qnum+1))]
(link: "I don't know.")[(goto: "Q"+(text:$qnum+1))]
<!--
For QA/QC:
Current number correct for TLO1: $tlo1
Current number correct for TLO2: $tlo2
Current number correct for TLO3: $tlo3
Current number correct for TLO4: $tlo4
-->(set: $qnum to it +1)
Question $qnum of $qtotal
Which of the following best describes a Conda environment?
(link: "A. An operating system variable that points to installed packages")[(goto: "Q"+(text:$qnum+1))]
(link: "B. A directory of installed packages which are isolated from other packages",)[(set: $tlo2 to it + 1)(goto: "Q"+(text:$qnum+1))]
(link: "C. A Python variable that imports installed packages")[(goto: "Q"+(text:$qnum+1))]
(link: "D. A directory of packages available for installation in Conda")[(goto: "Q"+(text:$qnum+1))]
(link: "I don't know.")[(goto: "Q"+(text:$qnum+1))]
<!--
For QA/QC:
Current number correct for TLO1: $tlo1
Current number correct for TLO2: $tlo2
Current number correct for TLO3: $tlo3
Current number correct for TLO4: $tlo4
-->(set: $qnum to it +1)
Question $qnum of $qtotal
Which of the following best describes Conda?
(link: "A. A package management system")[(set: $tlo2 to it + 1)(goto: "Q"+(text:$qnum+1))]
(link: "B. An operating system management system")[(goto: "Q"+(text:$qnum+1))]
(link: "C. A data management system")[(goto: "Q"+(text:$qnum+1))]
(link: "D. A notebook management system")[(goto: "Q"+(text:$qnum+1))]
(link: "I don't know")[(goto: "Q"+(text:$qnum+1))]
<!--
For QA/QC:
Current number correct for TLO1: $tlo1
Current number correct for TLO2: $tlo2
Current number correct for TLO3: $tlo3
Current number correct for TLO4: $tlo4
-->(set: $qnum to it +1)
Question $qnum of $qtotal
Which of the following denotes an inline comment in Python?
(link: "A. `/`")[(goto: "Q"+(text:$qnum+1)))]
(link: "B. `%`")[(goto: "Q"+(text:$qnum+1))]
(link: "C. `!`")[(goto: "Q"+(text:$qnum+1))]
(link: "D. `#`")[(set: $tlo1 to it + 1)(goto: "Q"+(text:$qnum+1))]</p>
(link: "I don't know.")[(goto: "Q"+(text:$qnum+1))]
<!--
For QA/QC:
Current number correct for TLO1: $tlo1
Current number correct for TLO2: $tlo2
Current number correct for TLO3: $tlo3
Current number correct for TLO4: $tlo4
-->(set: $combo to "")
Your results are below. If you scored below the 80% threshold in any category, links to recommended practice lessons are below.
<h3>Python Syntax</h3>You answered $tlo1/9 questions correctly
(if: $tlo1 <= 7)[(set: $combo to it + "1")Recommended Lesson:
 <a href="http://swcarpentry.github.io/python-novice-gapminder/" target="blank">Plotting and Programming in Python</a> by The Software Carpentries]
<h3>Meta-Python and Python Environments</h3>You answered $tlo2/5 questions correctly
(if: $tlo2 <= 3)[(set: $combo to it + "2")Recommended Lessons:
 Python Packages for Earth Data Science by EarthLab
  • <a href="https://www.earthdatascience.org/courses/intro-to-earth-data-science/python-code-fundamentals/use-python-packages/" target="blank">Chapter 11: Use Python Packages</a>
  • <a href="https://www.earthdatascience.org/courses/intro-to-earth-data-science/python-code-fundamentals/use-python-packages/introduction-to-python-conda-environments/" target="blank">Chapter 11: Conda Environments</a>
  • <a href="https://www.earthdatascience.org/courses/intro-to-earth-data-science/python-code-fundamentals/use-python-packages/use-conda-environments-and-install-packages/" target="blank">Chapter 11: Install Packages</a>]
<h3>Jupyter Notebooks</h3>You answered $tlo3/7 questions correctly
(if: $tlo3 <= 5)[(set: $combo to it + "3")Recommended Lesson:
 <a href="https://foundations.projectpythia.org/foundations/getting-started-jupyter.html" target="blank">Getting Started with Jupyter</a> by Project Pythia]
<h3>Python Scripting</h3>You answered $tlo4/5 questions correctly
(if: $tlo4 <= 3)[(set: $combo to it + "4")Recommended Lessons:
 <a href=https://foundations.projectpythia.org/core/numpy/numpy-basics.html"" target="blank">NumPy Basics</a> by Project Pythia
 <a href="https://foundations.projectpythia.org/core/matplotlib/matplotlib-basics.html" target="blank">Matplotlib Basics</a> by Project Pythia
 <a href="https://foundations.projectpythia.org/core/cartopy/cartopy.html" target="blank">Introduction to Cartopy</a> by Project Pythia]
(if: $tlo1 > 7 and $tlo2 > 3 and $tlo3 > 5 and $tlo4 > 3)[Your current knowledge of Python syntax, Python environments, and Jupyter is sufficient to continue your Python learning path. No specific lessons are recommended for you, but you are free to review any of the lessons in the pdf below for extra practice.]
To save your results, save this pdf: {(set: $urlpre to "RecommendedLessons/PythonSkillsSelfAssessmentRecommendedLessons_")
(set: $urlext to ".pdf")
(set: $urlcombo to $urlpre+$combo+$urlext)
(if: $combo is "1234")[<a href="RecommendedLessons/PythonSkillsSelfAssessmentRecommendedLessons_1234.pdf" target="blank">Recommended Lessons</a>]
(if: $combo is "123")[<a href="RecommendedLessons/PythonSkillsSelfAssessmentRecommendedLessons_123.pdf" target="blank">Recommended Lessons</a>]
(if: $combo is "12")[<a href="RecommendedLessons/PythonSkillsSelfAssessmentRecommendedLessons_12.pdf" target="blank">Recommended Lessons</a>]
(if: $combo is "1")[<a href="RecommendedLessons/PythonSkillsSelfAssessmentRecommendedLessons_1.pdf" target="blank">Recommended Lessons</a>]
(if: $combo is "134")[<a href="RecommendedLessons/PythonSkillsSelfAssessmentRecommendedLessons_134.pdf" target="blank">Recommended Lessons</a>]
(if: $combo is "13")[<a href="RecommendedLessons/PythonSkillsSelfAssessmentRecommendedLessons_13.pdf" target="blank">Recommended Lessons</a>]
(if: $combo is "14")[<a href="RecommendedLessons/PythonSkillsSelfAssessmentRecommendedLessons_14.pdf" target="blank">Recommended Lessons</a>]
(if: $combo is "124")[<a href="RecommendedLessons/PythonSkillsSelfAssessmentRecommendedLessons_124.pdf" target="blank">Recommended Lessons</a>]
(if: $combo is "234")[<a href="RecommendedLessons/PythonSkillsSelfAssessmentRecommendedLessons_234.pdf" target="blank">Recommended Lessons</a>]
(if: $combo is "23")[<a href="RecommendedLessons/PythonSkillsSelfAssessmentRecommendedLessons_23.pdf" target="blank">Recommended Lessons</a>]
(if: $combo is "24")[<a href="RecommendedLessons/PythonSkillsSelfAssessmentRecommendedLessons_24.pdf" target="blank">Recommended Lessons</a>]
(if: $combo is "2")[<a href="RecommendedLessons/PythonSkillsSelfAssessmentRecommendedLessons_2.pdf" target="blank">Recommended Lessons</a>]
(if: $combo is "34")[<a href="RecommendedLessons/PythonSkillsSelfAssessmentRecommendedLessons_34.pdf" target="blank">Recommended Lessons</a>]
(if: $combo is "3")[<a href="RecommendedLessons/PythonSkillsSelfAssessmentRecommendedLessons_3.pdf" target="blank">Recommended Lessons</a>]
(if: $combo is "4")[<a href="RecommendedLessons/PythonSkillsSelfAssessmentRecommendedLessons_4.pdf" target="blank">Recommended Lessons</a>]
(if: $combo is "")[<a href="RecommendedLessons/PythonSkillsSelfAssessmentRecommendedLessons_.pdf" target="blank">Recommended Lessons</a>]
}
[[Return to beginning|start]]
<!--
For QA/QC:
-->(set: $qnum to it +1)
Question $qnum of $qtotal
Select the correct syntax for allowing Python to use a module called <code>sys</code> in a Python script.
(link: "A. <code>from Python import sys</code>")[(goto: "Q"+(text:$qnum+1))]
(link: "B. <code>addpath(sys)</code>",)[(goto: "Q"+(text:$qnum+1))]
(link: "C. <code>load sys</code>")[(goto: "Q"+(text:$qnum+1))]
(link: "D. <code>import sys</code>")[(set: $tlo2 to it + 1)(goto: "Q"+(text:$qnum+1))]
(link: "I don't know.")[(goto: "Q"+(text:$qnum+1))]
<!--
For QA/QC:
Current number correct for TLO1: $tlo1
Current number correct for TLO2: $tlo2
Current number correct for TLO3: $tlo3
Current number correct for TLO4: $tlo4
-->(set: $qnum to it +1)
Question $qnum of $qtotal
Which of the following could be reasons for this error message?
<a href="" onclick="window.open('elo2e_q14.png','newwindow','width=900,height=450');return false;"><img src="elo2e_q14.png" width="500"></a>
<i>Click to enlarge</i>
I. The module may not exist in the active environment
II. The module name could be spelled incorrectly
III. The module could be empty
(link: "A. I")[(goto: "Q"+(text:$qnum+1))]
(link: "B. II")[(goto: "Q"+(text:$qnum+1))]
(link: "C. III")[(goto: "Q"+(text:$qnum+1))]
(link: "D. I and II")[(set: $tlo2 to it + 1)(goto: "Q"+(text:$qnum+1))]
(link: "E. I and III ")[(goto: "Q"+(text:$qnum+1))]
(link: "F. II, and III ")[(goto: "Q"+(text:$qnum+1))]
(link: "G. I, II, and III")[(goto: "Q"+(text:$qnum+1))]
(link: "I don't know.")[(goto: "Q"+(text:$qnum+1))]
<!--
For QA/QC:
Current number correct for TLO1: $tlo1
Current number correct for TLO2: $tlo2
Current number correct for TLO3: $tlo3
Current number correct for TLO4: $tlo4
-->(set: $qnum to it +1)
Question $qnum of $qtotal
True or False: You can edit Jupyter Notebooks via your computer’s web browser.
(link: "True",)[(set: $tlo3 to it + 1)(goto: "Q"+(text:$qnum+1))]
(link: "False")[(goto: "Q"+(text:$qnum+1))]
(link: "I don't know.")[(goto: "Q"+(text:$qnum+1))]
<!--
For QA/QC:
Current number correct for TLO1: $tlo1
Current number correct for TLO2: $tlo2
Current number correct for TLO3: $tlo3
Current number correct for TLO4: $tlo4
-->(set: $qnum to it +1)
Question $qnum of $qtotal
Which of the following options will ''NOT'' result in executing a cell in a Jupyter Notebook?
(link: "A. Enter")[(set: $tlo3 to it + 1)(goto: "Q"+(text:$qnum+1))]
(link: "B. Shift + Enter",)[(goto: "Q"+(text:$qnum+1))]
(link: "C. In the Run menu, select Run Selected Cells")[(goto: "Q"+(text:$qnum+1))]
(link: "D. Select the ▶ button")[(goto: "Q"+(text:$qnum+1))]
(link: "I don't know.")[(goto: "Q"+(text:$qnum+1))]
<!--
For QA/QC:
Current number correct for TLO1: $tlo1
Current number correct for TLO2: $tlo2
Current number correct for TLO3: $tlo3
Current number correct for TLO4: $tlo4
-->(set: $qnum to it +1)
Question $qnum of $qtotal
Which scenario describes a situation where using a Markdown cell in a Jupyter Notebook is appropriate?
(link: "A. Defining a new function")[(goto: "Q"+(text:$qnum+1))]
(link: "B. Commenting out a line of code you no longer need",)[(goto: "Q"+(text:$qnum+1))]
(link: "C. Printing a Notebook")[(goto: "Q"+(text:$qnum+1))]
(link: "D. Putting a title on a Notebook")[(set: $tlo3 to it + 1)(goto: "Q"+(text:$qnum+1))]
(link: "I don't know.")[(goto: "Q"+(text:$qnum+1))]
<!--
For QA/QC:
Current number correct for TLO1: $tlo1
Current number correct for TLO2: $tlo2
Current number correct for TLO3: $tlo3
Current number correct for TLO4: $tlo4
-->(set: $qnum to it +1)
Question $qnum of $qtotal
Select the most likely cause for the error presented in this example:
<a href="" onclick="window.open('elo3e_q19.png','newwindow','width=900,height=450');return false;"><img src="elo3e_q19.png" width="500"></a>
<i>Click to enlarge</i>
(link: "A. <code>wind1</code> is spelled incorrectly")[(goto: "Q"+(text:$qnum+1))]
(link: "B. The Python interpreter was not initialized",)[(goto: "Q"+(text:$qnum+1))]
(link: "C. The second cell contains a syntax error")[(goto: "Q"+(text:$qnum+1))]
(link: "D. The first cell was not run")[(set: $tlo3 to it + 1)(goto: "Q"+(text:$qnum+1))]
(link: "I don't know.")[(goto: "Q"+(text:$qnum+1))]
<!--
For QA/QC:
Current number correct for TLO1: $tlo1
Current number correct for TLO2: $tlo2
Current number correct for TLO3: $tlo3
Current number correct for TLO4: $tlo4
-->(set: $qnum to it +1)
Question $qnum of $qtotal
In the image below, the top cell was executed. Which of the following options could you take to see the value of the variable <code>loc1</code> in a Jupyter Notebook?
<a href="" onclick="window.open('elo3f_q20.png','newwindow','width=900,height=450');return false;"><img src="elo3f_q20.png" width="258px"></a>
<i>Click to enlarge</i>
I. Execute the command: <code>loc1</code>
II. Execute the command: <code>print(loc1)</code>
III. View loc1 in the Workspace browser
(link: "A. I")[(goto: "Q"+(text:$qnum+1))]
(link: "B. II")[(goto: "Q"+(text:$qnum+1))]
(link: "C. III")[(goto: "Q"+(text:$qnum+1))]
(link: "D. I and II")[(set: $tlo3 to it + 1)(goto: "Q"+(text:$qnum+1))]
(link: "E. I and III ")[(goto: "Q"+(text:$qnum+1))]
(link: "F. II, and III ")[(goto: "Q"+(text:$qnum+1))]
(link: "G. I, II, and III")[(goto: "Q"+(text:$qnum+1))]
(link: "I don't know.")[(goto: "Q"+(text:$qnum+1))]
<!--
For QA/QC:
Current number correct for TLO1: $tlo1
Current number correct for TLO2: $tlo2
Current number correct for TLO3: $tlo3
Current number correct for TLO4: $tlo4
-->(set: $qnum to it +1)
Question $qnum of $qtotal
Example the scenario below. What responsive feedback is Jupyter providing the user denoting that they have a syntax error in their code?
<a href="" onclick="window.open('elo3g_q21.gif','newwindow','width=900,height=450');return false;"><img src="elo3g_q21.gif" width="500px"></a>
<i>Click to enlarge</i>
(link: "A. The bold <code>for</code>")[(goto: "Q"+(text:$qnum+1))]
(link: "B. The bold <code>in</code>",)[(goto: "Q"+(text:$qnum+1))]
(link: "C. The highlighted green parentheses")[(goto: "Q"+(text:$qnum+1))]
(link: "D. The missing tab over when moving the cursor to the next line")[(set: $tlo3 to it + 1)(goto: "Q"+(text:$qnum+1))]
(link: "I don't know.")[(goto: "Q"+(text:$qnum+1))]
<!--
For QA/QC:
Current number correct for TLO1: $tlo1
Current number correct for TLO2: $tlo2
Current number correct for TLO3: $tlo3
Current number correct for TLO4: $tlo4
-->(set: $qnum to it +1)
Question $qnum of $qtotal
Examine the following code sample, then select the best summary of the tasks and outputs the code sample creates.
<code>`speed = mpcalc.wind_speed(u, v)
print(speed)
print(speed.to('mph'))`</code>
(link: "A. U and v components of the wind are calculated, then the wind speeds are printed in their original units, followed by the wind speeds in units of mph.")[(goto: "Q"+(text:$qnum+1))]
(link: "B. Wind speed is calculated from the u and v component of wind using a function called <code>`wind_speed()`</code>, then the wind speeds are printed in units of mph. ",)[(goto: "Q"+(text:$qnum+1))]
(link: "C. Wind speed is calculated from the u and v component of wind using a function called <code>`wind_speed()`</code>, then the wind speeds are printed in their original units, followed by the wind speeds in units of mph.")[(set: $tlo4 to it + 1)(goto: "Q"+(text:$qnum+1))]
(link: "D. U and v components of the wind are calculated, then the wind speeds are printed in units of mph.")[(goto: "Q"+(text:$qnum+1))]
(link: "I don't know.")[(goto: "Q"+(text:$qnum+1))]
<!--
For QA/QC:
Current number correct for TLO1: $tlo1
Current number correct for TLO2: $tlo2
Current number correct for TLO3: $tlo3
Current number correct for TLO4: $tlo4
-->(set: $qnum to it +1)
Question $qnum of $qtotal
You are tasked with adapting a previous plot with a larger title font size. Given the code sample below, which line of code could you modify to accomplish this task?
<a href="" onclick="window.open('elo4b_q23.png','newwindow','width=900,height=450');return false;"><img src="elo4b_q23.png" width="500px"></a>
<i>Click to enlarge</i>
(link: "A. 1")[(goto: "Q"+(text:$qnum+1))]
(link: "B. 4",)[(goto: "Q"+(text:$qnum+1))]
(link: "C. 9")[(set: $tlo4 to it + 1)(goto: "Q"+(text:$qnum+1))]
(link: "D. 11")[(goto: "Q"+(text:$qnum+1))]
(link: "I don't know.")[(goto: "Q"+(text:$qnum+1))]
<!--
For QA/QC:
Current number correct for TLO1: $tlo1
Current number correct for TLO2: $tlo2
Current number correct for TLO3: $tlo3
Current number correct for TLO4: $tlo4
-->(set: $qnum to it +1)
Question $qnum of $qtotal
You are tasked with creating a series of skew-T plots from the last month of sounding data. You find a code sample online that creates the type of plot you want to use, but it only plots one skew-T at a time. Which method below will provide you with the best output given your objective?
<a href="" onclick="window.open('elo4d_q25.png','newwindow','width=900,height=450');return false;"><img src="elo4d_q25.png" width="600px"></a>
<i>Click to enlarge</i>
(link: "A. Create a list of all input data, then write a loop that iterates through each data file, plot the data, then save the plot as 'skew-T.png'.")[(goto: "Q"+(text:$qnum+1))]
(link: "B. Create a list of all input data, then write a loop that iterates through each data file. Set p, T, Td, u, and v from the active file, plot the data, then save the plot to a unique filename.",)[(set: $tlo4 to it + 1)(goto: "Q"+(text:$qnum+1))]
(link: "C. Create a list of all input data, then write a conditional statement where if all plots have been created, stop creating new plots.")[(goto: "Q"+(text:$qnum+1))]
(link: "D. Create a list of all input data, then write a function that creates a loop for all data files. Save each output file to a unique filename.")[(goto: "Q"+(text:$qnum+1))]
(link: "I don't know.")[(goto: "Q"+(text:$qnum+1))]
<!--
For QA/QC:
Current number correct for TLO1: $tlo1
Current number correct for TLO2: $tlo2
Current number correct for TLO3: $tlo3
Current number correct for TLO4: $tlo4
-->
(set: $qnum to it +1)
Question $qnum of $qtotal
Which of the following file extensions is associated with a Jupyter Notebook?
(link: "A. .py")[(goto: "Q"+(text:$qnum+1))]
(link: "B. .jnb",)[(goto: "Q"+(text:$qnum+1))]
(link: "C. .ipynb")[(set: $tlo3 to it + 1)(goto: "Q"+(text:$qnum+1))]
(link: "D. .nc")[(goto: "Q"+(text:$qnum+1))]
(link: "I don't know.")[(goto: "Q"+(text:$qnum+1))]
<!--
For QA/QC:
Current number correct for TLO1: $tlo1
Current number correct for TLO2: $tlo2
Current number correct for TLO3: $tlo3
Current number correct for TLO4: $tlo4
--><img src="header.png">(set: $qnum to it +1)
Question $qnum of $qtotal
Examine the documentation for calculating vapor pressure using the MetPy Python package: <a href="https://unidata.github.io/MetPy/latest/api/generated/metpy.calc.vapor_pressure.html" target="blank">https://unidata.github.io/MetPy/latest/api/generated/metpy.calc.vapor_pressure.html</a>
Select the following line of code that will yield the correct vapor pressure output for a sample pressure of 1000 hPa and mixing ratio of 9.31 g/kg
(link: "A. <code>`vapor_pressure(pressure(1000 * units.hPa), mixing_ratio(9.31 * units('g/kg')))`</code>")[(goto: "Q"+(text:$qnum+1))]
(link: "B. <code>`vapor_pressure(1000 * units.hPa, 9.31 * units('g/kg'))`</code>",)[(set: $tlo4 to it + 1)(goto: "Q"+(text:$qnum+1))]
(link: "C. <code>`vapor_pressure(mixing_ratio(9.31 * units('g/kg')), pressure(1000 * units(‘hPa’)))`</code>")[(goto: "Q"+(text:$qnum+1))]
(link: "D. <code>`vapor_pressure(9.31 * units('g/kg'), 1000 * units.hPa)`</code>")[(goto: "Q"+(text:$qnum+1))]
(link: "I don't know.")[(goto: "Q"+(text:$qnum+1))]
<!--
For QA/QC:
Current number correct for TLO1: $tlo1
Current number correct for TLO2: $tlo2
Current number correct for TLO3: $tlo3
Current number correct for TLO4: $tlo4
-->
(set: $qnum to it +1)
Question $qnum of $qtotal
Examine this error message then select the most likely cause of the error.
<a href="" onclick="window.open('elo4e_q26.png','newwindow','width=900,height=450');return false;"><img src="elo4e_q26.png" width="800px"></a>
<i>Click to enlarge</i>
(link: "A. Syntax error: typo in line 9 <code>ax.imshow(Z, 'redblue')</code>")[(goto: "results")]
(link: "B. Feature deprecation: the input parameter is keyword-only",)[(goto: "results")]
(link: "C. Value error: The <code>cmap</code> input parameter was not a ScalarMappable value")[(goto: "results")]
(link: "D. Value error: the input parameter is not a valid value for <code>cmap</code>")[(set: $tlo4 to it + 1)(goto: "results")]
(link: "I don't know.")[(goto: "results")]
<!--
For QA/QC:
Current number correct for TLO1: $tlo1
Current number correct for TLO2: $tlo2
Current number correct for TLO3: $tlo3
Current number correct for TLO4: $tlo4
-->