NEW
Font size
WorksheetsJavaScript and GEE Quizz
Total questions: 32
Worksheet time: 32mins
Which satellite is used in the script to compute NDVI over Bengaluru?
Sentinel-2
MODIS
Landsat 8
ERA5
In NDVI calculation, which bands are used?
B3 and B4
B5 and B4
B2 and B3
B4 and B6
What does .buffer() do in GEE?
Clips the image
Zooms to the region
Applies classification
Expands the geometry by a specified distance
Which GEE function is used to filter multiple countries by name?
ee.Filter.eq()
ee.Filter.inList()
ee.Filter.or()
ee.Filter.notEquals()
Which image collection provides NO₂ data from Sentinel-5P?
LANDSAT/LC08/C02/T1_TOA
ECMWF/ERA5_LAND/MONTHLY_AGGR
COPERNICUS/S5P/OFFL/L3_NO2
MODIS/006/MOD13Q1
The purpose of the maskS2clouds() function is:
To enhance image contrast
To mask clouds in Sentinel-2 imagery
To correct atmospheric effects
To merge multiple images
What does the function do?
Clip geometry
Visualize land cover
Mask cloud and cirrus pixels
Filter image collection
What type of chart is generated by ui.Chart.image.seriesByRegion()?
Scatter plot
Pie chart
Line chart of time series
Box plot
What bands are used for Sentinel-2 false color composite (FCC)?
B4, B3, B2
B5, B4, B3
B8, B4, B3
B11, B8, B4
In land cover classification using Random Forest, what does sampleRegions() do?
Clips data by region
Trains the classifier
Extracts pixel values for training
Masks clouds
What type of raster is derived from ee.Terrain.slope()?
NDVI
Elevation
Slope
Temperature
In the GEE script, what does the following line do? var india = world.filter(ee.Filter.eq('country_co','IN'));
Filters India using the full country name
Filters India based on its ISO country code
Which method is used to select multiple features in a single filter operation?
ee.Filter.and()
ee.Filter.eq()
ee.Filter.inList()
ee.Filter.or()
What is the purpose of Map.centerObject(state, 5) in the script?
To set color of the map
To clip data to the state
To zoom and center the map view to the selected state
To export the layer
In MODIS land cover mapping, which band is used for classification in this example?
LC_Type1
NDVI
Surface_Reflectance
Cloud_Cover
What is the purpose of .mean() when applied to an image collection in GEE?
It creates a median composite
It returns the image with least cloud
It averages all images over the given time frame
It finds the image with max NDVI
How are two Indian states (e.g., Maharashtra and Tamil Nadu) extracted from a FeatureCollection?
Using ee.Filter.eq() and combining with merge()
Using ee.Filter.or() between two ee.Filter.eq() conditions
Using .map()
Using .reduce()
What parameter in Map.addLayer() defines the visibility of the layer when the map is rendered?
opacity
name
shown
color
What is the role of the palette object in the MODIS visualization?
Determines zoom levels
Sets classification thresholds
Assigns colors to different land cover types
Filters out null values
What is the correct way to declare a constant in JavaScript?
constant x = 5;
let x = 5;
const x = 5;
var x = constant 5;
Which of the following is a primitive data type in JavaScript?
object
array
function
string
What will the following code output? print(5 % 5)
0
1
Error
None of the above
What does the operator === do in JavaScript?
Assigns a value
Compares values (type conversion allowed)
Compares values and types
Checks if variable is declared
Which loop is best suited when the number of iterations is known?
while
do-while
for
foreach
What will be the value of j after the following code executes? let i = 0;
let j = ++i + i;
undefined
ReferenceError
2
4
What is the scope of a variable declared with let?
Global
Function
Block
Module
What will be the output of the following code? } else { console.log("Grade: C"); }
Grade: A
Grade: B
Grade: C
No output
Which of the following statements is false about functions?
Functions can return values
Functions are blocks of code
Functions can accept parameters
Functions can be reused
How do you add a new element to the beginning of an array?
array.push()
array.pop()
array.shift()
array.unshift()
What does the map() method do?
Creates a new array based on a condition
Filters values
Maps one array to another by applying a function
Summarizes the array to a single value
What will reduce() return when used with the array [1, 2, 3] and sum function?
6
[1, 2, 3]
3
undefined
What will this output? javascript let person = { name: "Alice", age: 30 }; delete person.age; console.log(person.age);
30
0
undefined
null
