Maggie Samson
Quiz von , erstellt am more than 1 year ago

Geography Quiz am GEOM 73 - Python Quiz 8, erstellt von Maggie Samson am 14/04/2019.

53
1
0
Maggie Samson
Erstellt von Maggie Samson vor mehr als 5 Jahre
Schließen

GEOM 73 - Python Quiz 8

Frage 1 von 10

1

Which file extension is used to package Python add-ins for ArcGIS for Desktop?

Wähle eine der folgenden:

  • .pyt

  • .pyc

  • .pyaddin

  • .esriaddin

  • .addin

Erklärung

Frage 2 von 10

1

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.

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 3 von 10

1

What is the default folder where add-ins are copied into when they are installed?

Wähle eine der folgenden:

  • 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

Erklärung

Frage 4 von 10

1

Which of the following is not a type of Python add-in?

Wähle eine der folgenden:

  • button

  • toolbar

  • combo box

  • tool

  • project

  • menu

Erklärung

Frage 5 von 10

1

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

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 6 von 10

1

Which of the following is not a function of the pythonaddins module?

Wähle eine der folgenden:

  • SaveDialog

  • ToolBox

  • OpenDialog

  • MessageBox

Erklärung

Frage 7 von 10

1

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.

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 8 von 10

1

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?

Wähle eine der folgenden:

  • 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

Erklärung

Frage 9 von 10

1

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?

Wähle eine der folgenden:

  • 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.

Erklärung

Frage 10 von 10

1

When using a Python add-in created by someone else, you can easily view and edit the Python code, similar to script tools.

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung