Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Google Earth Engine Quiz

Total questions: 16

Worksheet time: 16mins

Name
Class
Date
1.

How can you filter and display the India boundary in Google Earth Engine from a global boundary dataset?

a)

Using regions.filter(ee.Filter.eq('country_na', 'India'))

b)

Using regions.select('India')

c)

Using regions.clip('India')

d)

Using regions.map('India')

2.

what does this code snippet do?

Export.table.toDrive({

  collection: lakecoll,

  description: 'Varthur lake',

  folder: 'Lakes',

  fileFormat: 'SHP'

});

a)

Export a raster image of the lake to Google Drive as a shapefile (SHP).

b)

Export a feature collection representing the lake to Google Drive as a shapefile (SHP).

c)

Export a satellite image of the lake to Google Earth as a KML file.

d)

Export a topographic map of the lake to Google Drive as a CSV file.

3.

What does the following code do in Google Earth Engine?

var bufferValue = 5000;

var buff = aoi.buffer(bufferValue, 1);

Map.addLayer(buff);

a)

Creates a 5000km buffer around aoi and adds it to the map

b)

Creates a 5000-meter buffer around aoi and adds it to the map

c)

Clips the area of interest to a 5000-meter radius

d)

Creates a boundary within 5000 meters of the AOI and removes it from the map

4.

What does the .union() function do when applied to bufferedPoints in this code?

a)

Merges multiple point buffers into one dissolved layer

b)

Creates a buffer around each point

c)

Filters the points to include only those within the buffer

d)

Removes overlapping areas between buffered points

5.

What is the purpose of the map() function in Google Earth Engine when applied to a FeatureCollection?

a)

It filters the FeatureCollection based on specific criteria.

b)

It applies a function to each feature in the FeatureCollection and returns a new FeatureCollection.

c)

It merges two FeatureCollections into one.

d)

It removes features from the FeatureCollection based on a condition.

6.

Which of the following statements about const is true?

a)

Variables declared with const can be reassigned.

b)

const is block-scoped.

c)

Variables declared with const are not block-scoped.

d)

Variables declared with const can be hoisted like var.

7.

What will be the output of the following code?

const y = 10;

y = 15;

console.log(y);

a)

15

b)

10

c)

undefined

d)

TypeError

8.

Which of the following correctly describes the behavior of variables declared with let?

a)

They are function-scoped.

b)

They are globally scoped.

c)

They are block-scoped and can be reassigned.

d)

They cannot be reassigned after being initialized.

9.

what is the purpose of the given function?

var ImageColl = L8.map(function(image)

{ var ndvi = image.normalizedDifference(['B5','B4']).rename('NDVI');

 return image.addBands(ndvi); })

a)

To filter images with a cloud cover greater than 5%

b)

To calculate and add the NDVI band to each image in the ImageCollection

c)

To visualize the NDVI time series chart

d)

To set the title and axis options for the chart

10.

What is the purpose of the reduceRegion function?

a)

To display the DEM layer on the map

b)

To calculate a summary statistic for pixel values within the region

c)

To clip the DEM to the region of interest (aoi)

d)

To calculate the slope from the DEM

11.

What would happen if the maxPixels parameter is omitted in the reduceRegion function?

a)

It would throw an error if the number of pixels exceeds a default limit

b)

The function will reduce the image without any pixel limit

c)

The function will return the maximum pixel value instead of the mean

d)

The function will only process the first 100 pixels

12.

What does the ee.Reducer.mean() function compute when used with reduceRegion() in Google Earth Engine?

a)

The minimum value of the pixels in the specified region

b)

The average value of the pixels in the specified region

c)

The maximum value of the pixels in the specified region

d)

The total sum of the pixels in the specified region

13.

In the context of the reduceRegion() function, which reducer would you use to count the number of valid (non-masked) pixels in a region?

a)

ee.Reducer.mean()

b)

ee.Reducer.count()

c)

ee.Reducer.sum()

d)

ee.Reducer.median()

14.

What does the ee.ImageCollection.min() function do when applied to an image collection?

a)

Returns the image with the minimum mean pixel value across the collection

b)

Creates an image where each pixel is the minimum value of that pixel across the entire collection

c)

Counts the number of images in the collection

d)

Returns the first image in the collection

15.

What does the ee.ImageCollection.first() function return?

a)

The first non-null pixel value for each pixel in the collection

b)

The first image in the image collection (usually by acquisition date)

c)

The first band from each image in the collection

d)

The image with the highest mean pixel value

16.

In the following Earth Engine code snippet, what is the role of the xProperty: 'system:time_start' parameter in the ui.Chart.image.series function?

a)

It specifies the y-axis variable for the NDVI values in the chart.

b)

It defines the property used for labeling the x-axis, indicating the time of each image in the series.

c)

It selects the region over which to calculate the mean NDVI value.

d)

It sets the time zone for the dates displayed on the chart.