
GIS Developer Test
Quiz
•
Professional Development
•
Professional Development
•
Practice Problem
•
Hard
AGSRT Assessment
Used 9+ times
FREE Resource
Enhance your content in a minute
45 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Given the following JavaScript code snippet using Mapbox GL JS, identify the error that would prevent the map from displaying.
javascript
mapboxgl.accessToken = 'your.access.token';
var map = new mapboxgl.Map({
container: 'map', // container ID
style: 'mapbox://styles/mapbox/streets-v11', // style URL
center: [-74.50, 40], // starting position [lng, lat]
zoom: 9 // starting zoom
});
The `accessToken` is incorrectly set.
The `container` ID does not exist in the HTML.
The `style` URL is incorrectly formatted.
There are no errors in the code.
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
You need to make a server-side call using Node.js to GeoServer to retrieve all features from a layer called 'cities'. How would you structure your HTTP request using the `fetch` API?
javascript
.then(response => response.json())
.then(data => console.log(data));
The URL is missing authentication parameters.
The `outputFormat` should be set to `text/xml` instead of `application/json`.
The request is correctly structured for the described purpose.
The `fetch` API is not available in Node.js by default.
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Consider the following SQL query intended to find all parks within 500 meters of a given point. What is wrong with the query?
sql
SELECT park_name FROM parks
WHERE ST_DWithin(geom, ST_SetSRID(ST_MakePoint(-73.9851, 40.7589), 4326), 500);
The function `ST_DWithin` is not suitable for geometry types.
The SRID 4326 implies degrees, not meters.
`ST_MakePoint` coordinates are in the wrong order.
The query is correctly structured.
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
In a React application, you are using Leaflet to create a map. After the component mounts, you initialize the map. However, you notice that the map tiles fail to load properly on first render but appear fine after resizing the window. What is the most likely cause?
javascript
useEffect(() => {
const map = L.map('map').setView([51.505, -0.09], 13);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map);
}, []);
The map container size is not set before the map initializes.
The `useEffect` hook does not correctly clean up after itself.
The tile layer URL is incorrect.
React's virtual DOM does not support Leaflet.
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
. In MongoDB, you want to query documents in a 'locations' collection where the GeoJSON 'place' field is within a certain radius from a point. Which MongoDB query achieves this?
javascript
db.locations.find({
place: {
$nearSphere: {
$geometry: {
type: "Point",
coordinates: [-73.97, 40.77]
},
$maxDistance: 1000
}
}
});
The query is incorrect because `$nearSphere` cannot be used with GeoJSON data.
The `$maxDistance` is incorrectly set in meters without specifying the unit.
The query should use `$geoWithin` instead of `$nearSphere`.
The query is structured correctly for the described purpose.
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
In a React application using Maplibre GL JS, the map does not update when the component's state changes. What is a likely solution to this issue?
Use `componentDidUpdate` to update the map.
Make sure the map instance is created inside the `render` method.
Redefine the map instance inside the state object.
Use the `useEffect` hook to update the map when the state changes.
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
How can you use Node.js to periodically update GIS data from a PostgreSQL database with PostGIS extensions?
Using the `setTimeout` function in a loop.
Using the `setInterval` function.
Node.js cannot interact with PostgreSQL.
Using an external cron job to run the Node.js script.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
50 questions
Human Resource Management Final Exam
Quiz
•
Professional Development
40 questions
Chapter 18: Haircoloring and Lightening
Quiz
•
Professional Development
40 questions
ITIL 4-8
Quiz
•
Professional Development
42 questions
Exchange Revision
Quiz
•
Professional Development
42 questions
Electrical Principles 6035-02 | Revision
Quiz
•
Professional Development
50 questions
PDE-2022-3
Quiz
•
Professional Development
50 questions
SELASAR W4 AGS 2024
Quiz
•
Professional Development
45 questions
Quality Engineering - Online Assessment
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
