Questão 1
Questão
Which of the following is not an example of why you would use a script tool instead of a stand-alone script?
Responda
-
A script tool includes a dialog box, making it easier to use.
-
Users don't really need to know Python to use a script tool
-
Script tools can be run using background geoprocessing
-
A script tool makes it easier to share functionality with others
Questão 2
Questão
When creating a script tool it is recommended to set your Python script to run "in process", since this is faster.
Questão 3
Questão
If a script tool uses a parameter that consists of a list (list of values, list of featue classes), which ArcPy function is used to receive this parameter as an object?
Responda
-
GetParameter
-
sys.argv
-
GetParameterAsText
-
GetParameterAsList
Questão 4
Questão
All script tools should have at least one output, even if that means using a derived parameter based on the input.
Questão 5
Questão
Consider the tool dialog shown here. Which parameter is controlled using the "obtained from" property?
Responda
-
Side Type
-
Output Feature Class
-
Linear unit
-
Field
-
Input Features
-
Dissolve Type
Questão 6
Questão
Which ArcPy function is used to retrieve all messages from a previously run tool, regardless of severity, in order to print them to the Results window?
Responda
-
ReturnMessages
-
AddAllMessages
-
AddReturnMessage
-
AddMessage
Questão 7
Questão
When executing a script tool, which type of progessor allows you to show the percentage completed during an iteration over a large number of datasets?
Responda
-
percent progressor
-
position progressor
-
default progressor
-
step progressor
Questão 8
Questão
In order to facilitate the sharing of script tool, you should generally not enable relative paths in the properties of the script tool.
Questão 9
Questão
When running a script tool, how can you determine the location of the script file itself?
Responda
-
sys.path[1]
-
os.getcwd[1]
-
os.getcwd[0]
-
sys.path[0]
Questão 10
Questão
When sharing a script tool, if you do not want to share your actual Python code, you can simply embed your script in a toolbox and your code will not be accessible by others.