Free Esri Technical Programming & Customization Questions and Answers — Questions and Answers
Question 1: Which Python library is primarily used for scripting and automating tasks in ArcGIS?
- NumPy
- ArcPy (Correct answer)
- Pandas
- Matplotlib
Correct answer: ArcPy
ArcPy is a Python site package that provides a powerful and productive way to perform geographic data analysis, data conversion, data management, and map automation with Python. It is the primary library for scripting and automating tasks within ArcGIS Desktop, ArcGIS Pro, and ArcGIS Server environments.
Question 2: Which method in the ArcGIS API for Python is used to query features in a hosted feature layer?
- update()
- query() (Correct answer)
- get_features()
- search()
Correct answer: query()
In the ArcGIS API for Python, the `query()` method is specifically used to retrieve features from a hosted feature layer based on specified criteria. It allows users to filter, sort, and select features, returning a FeatureSet object containing the results. This is a fundamental operation for interacting with and extracting data from web layers.
Question 3: When developing a web application with the ArcGIS JavaScript API, which object is used to load and display a map?
- Map (Correct answer)
- SceneView
- MapView (Correct answer)
- Layer
Correct answer: Map
In the ArcGIS JavaScript API, the `Map` object is the core component used to define the map's properties, such as its basemap, layers, and initial extent. While `MapView` (or `SceneView`) is used to display the map in a 2D or 3D view, the `Map` object itself holds the actual map content and configuration.
Question 4: What is the purpose of a Geoprocessing Service in ArcGIS Server?
- To host and manage maps and layers for web applications.
- To expose geoprocessing tasks as web services. (Correct answer)
- To create and publish dashboards for data visualization.
- To store geodatabases in the cloud.
Correct answer: To expose geoprocessing tasks as web services.
A Geoprocessing Service in ArcGIS Server allows users to publish geoprocessing models or scripts as web services. This enables client applications (like web apps or desktop GIS) to execute complex spatial analysis tasks remotely, leveraging the server's processing power without needing to install ArcGIS software locally.
Question 5: Which of the following are valid use cases for extending ArcGIS functionality with custom Python scripts?
- Automating repetitive geoprocessing workflows. (Correct answer)
- Customizing map symbology.
- Generating custom reports from GIS data. (Correct answer)
- Creating new geoprocessing tools. (Correct answer)
Correct answer: Automating repetitive geoprocessing workflows.
Custom Python scripts are highly effective for extending ArcGIS functionality, particularly for automating repetitive geoprocessing workflows, generating custom reports from GIS data, and creating new geoprocessing tools. Python's flexibility and ArcPy's extensive capabilities make it ideal for streamlining tasks and developing tailored solutions beyond standard ArcGIS tools.
Which Python library is primarily used for scripting and automating tasks in ArcGIS?