Maggie Samson
Quiz by , created more than 1 year ago

Geography Quiz on GEOM 73 - Python Quiz 5, created by Maggie Samson on 14/04/2019.

65
2
0
Maggie Samson
Created by Maggie Samson about 5 years ago
Close

GEOM 73 - Python Quiz 5

Question 1 of 10

1

Consider the following code:

mapdoc = arpy.mapping.MapDocument("CURRENT")

What does the keyword CURRENT refer to?

Select one of the following:

  • 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

Explanation

Question 2 of 10

1

Which of the following is (are) not a propery of a data frame object when using the ListDataFrames function? (check all that apply)

Select one or more of the following:

  • scale

  • extent

  • showLabels

  • dataSource

  • visible

  • name

Explanation

Question 3 of 10

1

Which of the following is (are) a method of the DataFrame object? (check all that apply)

Select one or more of the following:

  • getExtent

  • panToExtent

  • delete

  • save

  • zoomToSelectedFeatures

  • mapUnits

Explanation

Question 4 of 10

1

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?

Select one of the following:

  • supports

  • contains

  • isValid

  • exists

Explanation

Question 5 of 10

1

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?

Select one of the following:

  • AddLayer

  • InsertLayer

  • AddLayerToGroup

  • UpdateLayer

Explanation

Question 6 of 10

1

Which method (s) can be used on map documents to update or fix broken data sources? (check all that apply)

Select one or more of the following:

  • findAndReplaceWorkspacePath

  • replaceWorkspaces

  • ListBrokenDataSources

  • findAndReplaceWorkspacePaths

  • FixBrokenDataSources

  • replaceDataSource

Explanation

Question 7 of 10

1

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)

Select one or more of the following:

  • GRAPHIC_ELEMENT

  • DATA_ELEMENT

  • TEXT_ELEMENT

  • LEGEND_ELEMENT

  • SCALE_ELEMENT

Explanation

Question 8 of 10

1

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?

Select one of the following:

  • textlist = arcpy.mapping.ListLayoutElements(mapdoc, "", "Text")[0]

  • textlist = arcpy.mapping.ListLayoutElements(mapdoc, "TEXT_ELEMENT")

  • textlist = arcpy.mapping.ListLayoutElements(mapdoc, "", "Text")

  • textlist = arcpy.mapping.ListLayoutElements(mapdoc, "TEXT_ELEMENT")[0]

Explanation

Question 9 of 10

1

Which of the following is the ArcPy function used to create a PDF file of a map document?

Select one of the following:

  • SaveToPDF

  • PrintMapToPDF

  • PDFDocumentCreate

  • ExportToPDF

Explanation

Question 10 of 10

1

Which of the following cannot be accomplished by using the ArcPy mapping module in a Python script? (check all that apply)

Select one or more of the following:

  • Add a new data layer to a data frame

  • Add a new data frame to a map document

  • Create a new empty map document

  • Add a scale bar to a map layout

Explanation