
GIS Developer Test

Quiz
•
Professional Development
•
Professional Development
•
Medium
AGSRT Assessment
Used 3+ times
FREE Resource
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.
Create a free account and access millions of resources
Similar Resources on Wayground
40 questions
Certified Information Systems Security Professional (CISSP)

Quiz
•
Professional Development
44 questions
Networking, Load Balancing, Storage and Configuration

Quiz
•
Professional Development
49 questions
YTT half way quiz

Quiz
•
Professional Development
44 questions
LV2.2Q imi revision

Quiz
•
Professional Development
44 questions
Urządzenia biurowe

Quiz
•
Professional Development
50 questions
ĐỀ 10

Quiz
•
Professional Development
47 questions
IMI auto LV08 Chassis Diagnotics

Quiz
•
Professional Development
50 questions
RCP 110 Final Review (CH. 1-5)

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade