Consider the following code:
mapdoc = arpy.mapping.MapDocument("CURRENT")
What does the keyword CURRENT refer to?
Answer
a variable called CURRENT in preceding lines of code in the script
the map document current loaded into ArcMap
the map document in the current workspace
the most recently saved map document by ArcMap
Question 2
Question
Which of the following is (are) not a propery of a data frame object when using the ListDataFrames function? (check all that apply)
Answer
scale
extent
showLabels
dataSource
visible
name
Question 3
Question
Which of the following is (are) a method of the DataFrame object? (check all that apply)
Answer
getExtent
panToExtent
delete
save
zoomToSelectedFeatures
mapUnits
Question 4
Question
Not all layers have the same properties. Which method is used to determine whether a particular property (such as showLabels) applies to a specific layer?
Answer
supports
contains
isValid
exists
Question 5
Question
Which one of the following functions of the ArcPy mapping module allows you to to add a layer before or after an already existing layer in a data frame?
Answer
AddLayer
InsertLayer
AddLayerToGroup
UpdateLayer
Question 6
Question
Which method (s) can be used on map documents to update or fix broken data sources? (check all that apply)
Answer
findAndReplaceWorkspacePath
replaceWorkspaces
ListBrokenDataSources
findAndReplaceWorkspacePaths
FixBrokenDataSources
replaceDataSource
Question 7
Question
Which of the following is (are) not a layout element type that can be used in scripting using the ListLayoutElements function of the ArcPy mapping module? (check all that apply)
Answer
GRAPHIC_ELEMENT
DATA_ELEMENT
TEXT_ELEMENT
LEGEND_ELEMENT
SCALE_ELEMENT
Question 8
Question
Consider the following code:
import arcpy
mapdoc = arcpy.mapping.MapDocument("C:/Project/Study.mxd")
Which of the following correctly creates a list of the all the text elements on a layout?