Home »
MCQs
Leaflet Multiple-Choice Questions (MCQs)
Leaflet is a JavaScript library that is used to build web-mapping applications. It is an open-source library. Leaflet supports desktop and mobile platforms. And it supports CSS3 and HTML5.
Leaflet MCQs: This section contains multiple-choice questions and answers on the various topics of Leaflet. Practice these MCQs to test and enhance your skills on Leaflet.
List of Leaflet MCQs
1. Leaflet is an open-source ____ library?
- JavaScript
- Python
- C++
- Java
Answer: A) JavaScript
Explanation:
Leaflet is an open-source JavaScript library.
Discuss this Question
2. Which of the following produces a new Leaflet map object with the initial location and zoom level specified?
- MAP()
- L.map()
- Map.leaflet()
- All of the above
Answer: B) L.map()
Explanation:
L.map() produces a new Leaflet map object with the initial location and zoom level specified.
Discuss this Question
3. ____ are used in rare instances to prevent Leaflet from detecting a certain browser feature, even if it exists.
- Leaflet general Switches
- Local Switches
- Instant Switches
- Global switches
Answer: D) Global switches
Explanation:
Global switches are used in rare instances to prevent Leaflet from detecting a certain browser feature, even if it exists.
Discuss this Question
4. Which of the following is the foundation class for map controls?
- Controlling.leaflet
- Leaflet.controlfeatures
- L.control
- Control.L
Answer: C) L.control
Explanation:
L.Control is the foundation class for map controls.
Discuss this Question
5. ____ is a unique class attribute that incorporates all specified objects into the class.
- Merge
- Include
- Set
Answer: B) Include
Explanation:
Include is a unique class attribute that incorporates all specified objects into the class.
Discuss this Question
6. Leaflet's OOP features are powered by ____?
- L.oop
- L.class
- L.object
Answer: B) L.class
Explanation:
Leaflet's OOP features are powered by L.Class.
Discuss this Question
7. In pixel coordinates, ____ represents a rectangular region?
- ShiftPixel
- Box
- Square
- Bounds
Answer: D) Bounds
Explanation:
In pixel coordinates, bounds represent a rectangular region.
Discuss this Question
8. Does Bounds inherits from Leaflet's Class object?
- Yes
- No
Answer: B) No
Explanation:
It should be noted that Bounds does not derive from Leaflet's Class object.
Discuss this Question
9. ____ represents a point with x and y coordinates in pixels?
- Point
- Dot
- Clear
- Fix
Answer: A) Point
Explanation:
Point Represents a point with x and y coordinates in pixels.
Discuss this Question
10. Which of the following represents the Leaflet version?
- L.ver
- L.version
- L.current
- L.curVer
Answer: B) L.version
Explanation:
L.version represents the Leaflet version.
Discuss this Question
11. You may use the ____ control to display attribution data in a tiny text box on a map.
- Attribution
- Zooming
- Layer
- Scale
Answer: A) Attribution
Explanation:
You may use the attribution control to display attribution data in a tiny text box on a map.
Discuss this Question
12. ____ are DOM components that regulate the layer ordering on the map?
- Features
- Pane
- Layer
- Groups
Answer: B) Pane
Explanation:
Panes are DOM components that regulate the layer ordering on the map.
Discuss this Question
13. You may add many layers to a map and manage them as a single layer by using ____?
- LayerCluster
- LayerMap
- LayerGroup
Answer: C) LayerGroup
Explanation:
You may add many layers to a map and manage them as a single layer by using a layer group.
Discuss this Question
14. ____ is used on the map to display clickable/draggable icons?
- L.dragged
- L.tooltip
- L.tip
- L.Marker
Answer: D) L.Marker
Explanation:
L.Marker is used on the map to display clickable/draggable icons.
Discuss this Question
15. ____ is Used to display little text on top of map layers.
- Tool
- SmallTool
- Tooltip
- Smalltip
Answer: C) Tooltip
Explanation:
The tooltip is used to display little text on top of map layers.
Discuss this Question
16. Which of the following is used to load and display a single image over specific bounds of the map?
- Imagelayer
- Layer
- ImageOverlay
- LayerOverlay
Answer: C) ImageOverlay
Explanation:
ImageOverlay is used to load and display a single image over specific bounds of the map.
Discuss this Question
17. Which of the following is used to load and show a video player within the map's borders?
- VideoOverlay
- VideoDisplay
- VideoMonitor
Answer: A) VideoOverlay
Explanation:
VideoOverlay is Used to load and show a video player within the map's borders.
Discuss this Question
18. ____ represents a geographical point with a certain latitude and longitude?
- LatLang
- Lat.bounds
- LatLng
- LatLngBounds
Answer: C) LatLng
Explanation:
LatLng represents a geographical point with a certain latitude and longitude.
Discuss this Question
19. On a map,____ represents a rectangle geographical region?
- Rectangle.Map
- Box.bounds
- Latboundsmap
- LatLngBounds
Answer: D) LatLngBounds
Explanation:
On a map, LatlngBounds represents a rectangle geographical region.
Discuss this Question
20. Does points inherits from Leaflet's Class object?
- Yes
- No
Answer: B) No
Explanation:
Because Point does not inherit from Leaflet's Class object, new classes cannot inherit from it.
Discuss this Question