Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 1 out of 2 pages
Exam (elaborations)

Python for Everyone Esri GIS Questions With Correct Answers

Document preview thumbnail
Preview 1 out of 2 pages

Python for Everyone Esri GIS Questions With Correct Answers When working in ArcGIS Pro, you must import ArcPy to use functions from the ArcPy site package. - Answerfalse .In the syntax for a function, what follows the name of the function? - AnswerOne or more function parameters enclosed in parentheses .Running the following script returns an error before it begins to execute. Which answer best describes the reason for the error? import arcpy f c = r"C:/Data/Roads arcpy.Buffer_analysis (fc, fc + "_buff", " - AnswerThe path for fc requires a closing quotation mark. .Running the following script returns an error after it executes but before it prints any of the items in dataList. Which answer best describes the reason for the error? dataList = ("Zoning", "Sewers", "Parcels") for data in datList: print (data) - AnswerdatList is misspelled in the second line; it should be dataList. .Which option best describes the purpose of the import math statement in the following code? import math sqRt = (64) - AnswerIn this script, import math allows you to use Python mathematical functions that are not built in. .Python has encountered an error before the script can run. This error is most likely an exception. - AnswerFalse .In the following code, what data type is being stored in the variable mountains? - AnswerList .You can concatenate the number literal 100 with the string literal "meters" with the following code: 100 + "meters" - Answerfalse .The following line of code creates a list of data and assigns it to the variable dataList. dataList = ["Forests", "S", "LandU"] Which lines of code will remove shapefiles from dataList? - Answerfor data in dataList: if ith(".shp"): dataLe(data) .The ArcGIS Pro Python window and an IDE, such as PyCharm, can both execute a single line of code. - AnswerTrue

Content preview

Python for Everyone Esri GIS Questions
With Correct Answers
When working in ArcGIS Pro, you must import ArcPy to use functions from the ArcPy
site package. - Answerfalse

.In the syntax for a function, what follows the name of the function? - AnswerOne or
more function parameters enclosed in parentheses

.Running the following script returns an error before it begins to execute. Which answer
best describes the reason for the error?
import arcpy f
c = r"C:/Data/Roads arcpy.Buffer_analysis (fc, fc + "_buff", " - AnswerThe path for fc
requires a closing quotation mark.

.Running the following script returns an error after it executes but before it prints any of
the items in dataList. Which answer best describes the reason for the error?
dataList = ("Zoning", "Sewers", "Parcels") for data in datList:
print (data) - AnswerdatList is misspelled in the second line; it should be dataList.

.Which option best describes the purpose of the import math statement in the following
code?
import math
sqRt = math.sqrt(64) - AnswerIn this script, import math allows you to use Python
mathematical functions that are not built in.

.Python has encountered an error before the script can run. This error is most likely an
exception. - AnswerFalse

.In the following code, what data type is being stored in the variable mountains? -
AnswerList

.You can concatenate the number literal 100 with the string literal "meters" with the
following code: 100 + "meters" - Answerfalse

.The following line of code creates a list of data and assigns it to the variable dataList.
dataList = ["Forests", "Soils.shp", "LandUse.mxd"]
Which lines of code will remove shapefiles from dataList? - Answerfor data in dataList: if
data.endswith(".shp"): dataList.remove(data)

.The ArcGIS Pro Python window and an IDE, such as PyCharm, can both execute a
single line of code. - AnswerTrue

Document information

Uploaded on
November 14, 2024
Number of pages
2
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$10.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
0
Followers
1
Items
65
Last sold
-


Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions