wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

JavaScript and GEE Quizz

Total questions: 32

Worksheet time: 32mins

Name
Class
Date
1.

Which satellite is used in the script to compute NDVI over Bengaluru?

a)

Sentinel-2

b)

MODIS

c)

Landsat 8

d)

ERA5

2.

In NDVI calculation, which bands are used?

a)

B3 and B4

b)

B5 and B4

c)

B2 and B3

d)

B4 and B6

3.

What does .buffer() do in GEE?

a)

Clips the image

b)

Zooms to the region

c)

Applies classification

d)

Expands the geometry by a specified distance

4.

Which GEE function is used to filter multiple countries by name?

a)

ee.Filter.eq()

b)

ee.Filter.inList()

c)

ee.Filter.or()

d)

ee.Filter.notEquals()

5.

Which image collection provides NO₂ data from Sentinel-5P?

a)

LANDSAT/LC08/C02/T1_TOA

b)

ECMWF/ERA5_LAND/MONTHLY_AGGR

c)

COPERNICUS/S5P/OFFL/L3_NO2

d)

MODIS/006/MOD13Q1

6.

The purpose of the maskS2clouds() function is:

a)

To enhance image contrast

b)

To mask clouds in Sentinel-2 imagery

c)

To correct atmospheric effects

d)

To merge multiple images

7.

What does the function do?

a)

Clip geometry

b)

Visualize land cover

c)

Mask cloud and cirrus pixels

d)

Filter image collection

8.

What type of chart is generated by ui.Chart.image.seriesByRegion()?

a)

Scatter plot

b)

Pie chart

c)

Line chart of time series

d)

Box plot

9.

What bands are used for Sentinel-2 false color composite (FCC)?

a)

B4, B3, B2

b)

B5, B4, B3

c)

B8, B4, B3

d)

B11, B8, B4

10.

In land cover classification using Random Forest, what does sampleRegions() do?

a)

Clips data by region

b)

Trains the classifier

c)

Extracts pixel values for training

d)

Masks clouds

11.

What type of raster is derived from ee.Terrain.slope()?

a)

NDVI

b)

Elevation

c)

Slope

d)

Temperature

12.

In the GEE script, what does the following line do? var india = world.filter(ee.Filter.eq('country_co','IN'));

a)

Filters India using the full country name

b)

Filters India based on its ISO country code

13.

Which method is used to select multiple features in a single filter operation?

a)

ee.Filter.and()

b)

ee.Filter.eq()

c)

ee.Filter.inList()

d)

ee.Filter.or()

14.

What is the purpose of Map.centerObject(state, 5) in the script?

a)

To set color of the map

b)

To clip data to the state

c)

To zoom and center the map view to the selected state

d)

To export the layer

15.

In MODIS land cover mapping, which band is used for classification in this example?

a)

LC_Type1

b)

NDVI

c)

Surface_Reflectance

d)

Cloud_Cover

16.

What is the purpose of .mean() when applied to an image collection in GEE?

a)

It creates a median composite

b)

It returns the image with least cloud

c)

It averages all images over the given time frame

d)

It finds the image with max NDVI

17.

How are two Indian states (e.g., Maharashtra and Tamil Nadu) extracted from a FeatureCollection?

a)

Using ee.Filter.eq() and combining with merge()

b)

Using ee.Filter.or() between two ee.Filter.eq() conditions

c)

Using .map()

d)

Using .reduce()

18.

What parameter in Map.addLayer() defines the visibility of the layer when the map is rendered?

a)

opacity

b)

name

c)

shown

d)

color

19.

What is the role of the palette object in the MODIS visualization?

a)

Determines zoom levels

b)

Sets classification thresholds

c)

Assigns colors to different land cover types

d)

Filters out null values

20.

What is the correct way to declare a constant in JavaScript?

a)

constant x = 5;

b)

let x = 5;

c)

const x = 5;

d)

var x = constant 5;

21.

Which of the following is a primitive data type in JavaScript?

a)

object

b)

array

c)

function

d)

string

22.

What will the following code output? print(5 % 5)

a)

0

b)

1

c)

Error

d)

None of the above

23.

What does the operator === do in JavaScript?

a)

Assigns a value

b)

Compares values (type conversion allowed)

c)

Compares values and types

d)

Checks if variable is declared

24.

Which loop is best suited when the number of iterations is known?

a)

while

b)

do-while

c)

for

d)

foreach

25.

What will be the value of j after the following code executes? let i = 0;

let j = ++i + i;

a)

undefined

b)

ReferenceError

c)

2

d)

4

26.

What is the scope of a variable declared with let?

a)

Global

b)

Function

c)

Block

d)

Module

27.

What will be the output of the following code? } else { console.log("Grade: C"); }

a)

Grade: A

b)

Grade: B

c)

Grade: C

d)

No output

28.

Which of the following statements is false about functions?

a)

Functions can return values

b)

Functions are blocks of code

c)

Functions can accept parameters

d)

Functions can be reused

29.

How do you add a new element to the beginning of an array?

a)

array.push()

b)

array.pop()

c)

array.shift()

d)

array.unshift()

30.

What does the map() method do?

a)

Creates a new array based on a condition

b)

Filters values

c)

Maps one array to another by applying a function

d)

Summarizes the array to a single value

31.

What will reduce() return when used with the array [1, 2, 3] and sum function?

a)

6

b)

[1, 2, 3]

c)

3

d)

undefined

32.

What will this output? javascript let person = { name: "Alice", age: 30 }; delete person.age; console.log(person.age);

a)

30

b)

0

c)

undefined

d)

null