GEOM 73 - Python Quiz 8

Beschreibung

Geography Quiz am GEOM 73 - Python Quiz 8, erstellt von Maggie Samson am 14/04/2019.
Maggie Samson
Quiz von Maggie Samson, aktualisiert more than 1 year ago
Maggie Samson
Erstellt von Maggie Samson vor mehr als 5 Jahre
57
1

Zusammenfassung der Ressource

Frage 1

Frage
Which file extension is used to package Python add-ins for ArcGIS for Desktop?
Antworten
  • .pyt
  • .pyc
  • .pyaddin
  • .esriaddin
  • .addin

Frage 2

Frage
A Python add-in is a good option for customization when a certain task needs to be carried out in response to an event, such as a user selecting an area of interest by drawing on-screen.
Antworten
  • True
  • False

Frage 3

Frage
What is the default folder where add-ins are copied into when they are installed?
Antworten
  • C:\Esri\ArcGIS\Desktop10.x\AddIns
  • C:\Program Files\ArcGIS\Desktop10.x\AddIns
  • C:\Pythonxx\ArcGIS10.x\AddIns
  • C:\Users\<username>\Documents\ArcGIS\AddIns\Desktop10.x

Frage 4

Frage
Which of the following is not a type of Python add-in?
Antworten
  • button
  • toolbar
  • combo box
  • tool
  • project
  • menu

Frage 5

Frage
The pythonaddins module can only be used within a Python add-in and cannot be used in stand-alone scripts or geoprocessing script tools.
Antworten
  • True
  • False

Frage 6

Frage
Which of the following is not a function of the pythonaddins module?
Antworten
  • SaveDialog
  • ToolBox
  • OpenDialog
  • MessageBox

Frage 7

Frage
Python add-ins can be digitally signed to improve security when the add-ins are shared. Once an add-in file has been digitally signed, modifying or removing any of its contents will break the digital signature.
Antworten
  • True
  • False

Frage 8

Frage
Consider the following script for a Python add-in: import arcpy import pythonaddins class OpenGPTool(object): def __init__(self): self.enabled = True self.checked = False def onClick(self): pythonaddins.GPToolDialog('C:/Project/ProjectTools.tbx', 'MyTool') What is onClick in this script?
Antworten
  • A property of the Button class
  • A method of the Tool function
  • A method of the Button function
  • A property of the Tool class
  • A function of the Button class
  • A function of the Tool class

Frage 9

Frage
Consider the following script for a Python add-in: import arcpy import pythonaddins class OpenGPTool(object): def __init__(self): self.enabled = True self.checked = False def onClick(self): pythonaddins.GPToolDialog('C:/Project/ProjectTools.tbx', 'MyTool') What does the add-in accomplish?
Antworten
  • When you click the button it runs a Python script
  • When you click the button it open a dialog box for you to select a geoprocessing tool
  • When you click the button it uses the currently selected features in a geoprocessing tool
  • When you click the button it opens a geoprocessing tool from a custom toolbox.

Frage 10

Frage
When using a Python add-in created by someone else, you can easily view and edit the Python code, similar to script tools.
Antworten
  • True
  • False
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

Geography Quiz
PatrickNoonan
Geography Coastal Zones Flashcards
Zakiya Tabassum
Using GoConqr to study geography
Sarah Egan
All the Countries of the World and their Capital Cities
PatrickNoonan
Tectonic Hazards flashcards
katiehumphrey
Volcanoes
1jdjdjd1
River Processes and Landforms
1jdjdjd1
GCSE Geography - Causes of Climate Change
Beth Coiley
The Rock Cycle
eimearkelly3
Plate Tectonics
eimearkelly3
Characteristics and Climate of a hot desert
Adam Collinge