PYTHON FOR EVERYONE ESRI GIS
TEST
To utilize the ArcPy site package's functionalities in ArcGIS Pro, you must first
import ArcPy. - The answer is untrue.
What comes after the function name in the syntax? - ANSWER One or more
function parameters are enclosed in parentheses.
Running the following script results in an error before it begins to execute.
Which option best describes the reason for the error?
import arcpy f.
c = r"C:/Data/Roads.arcpy."Buffer_analysis (fc, fc + "_buff", "- ANSWER")
The path for fc requires a concluding quote mark.
Running the following script generates an error after execution but before
printing any of the items in dataList. Which option best describes the reason for
the error?
dataList = ("Zoning", "Sewers", "Parcels") for data in datList:
print (data) - ANSWER datList is misspelled on the second line; it should read
dataList.
Which option best captures the intent of the import math statement in the code
below?
Import Math
sqRt = math.sqrt(64). - ANSWER In this script, import math allows you to use
Python mathematical functions that are not built-in.
TEST
To utilize the ArcPy site package's functionalities in ArcGIS Pro, you must first
import ArcPy. - The answer is untrue.
What comes after the function name in the syntax? - ANSWER One or more
function parameters are enclosed in parentheses.
Running the following script results in an error before it begins to execute.
Which option best describes the reason for the error?
import arcpy f.
c = r"C:/Data/Roads.arcpy."Buffer_analysis (fc, fc + "_buff", "- ANSWER")
The path for fc requires a concluding quote mark.
Running the following script generates an error after execution but before
printing any of the items in dataList. Which option best describes the reason for
the error?
dataList = ("Zoning", "Sewers", "Parcels") for data in datList:
print (data) - ANSWER datList is misspelled on the second line; it should read
dataList.
Which option best captures the intent of the import math statement in the code
below?
Import Math
sqRt = math.sqrt(64). - ANSWER In this script, import math allows you to use
Python mathematical functions that are not built-in.