MCQs / Computer Science / Lab: Current Location Coordinates
Lab: Current Location Coordinates MCQs — Computer Science 12 multiple-choice questions on Lab: Current Location Coordinates from Computer Science, each with the correct answer and, where available, a teacher's explanation. Read through them to revise the chapter, then practise the same questions one by one to test yourself.
1. From Android 12, an app requesting precise location must request: Both ACCESSFINELOCATION and ACCESSCOARSELOCATION Only ACCESSFINELOCATION ACCESSBACKGROUNDLOCATION first CAMERA Answer: A) Both ACCESSFINELOCATION and ACCESSCOARSELOCATION
Explanation: The user can then choose precise or approximate.
Discuss this question
2. Approximate location is usually accurate to about: 1–3 km 1 cm 5 m 100 km Answer: A) 1–3 km
Explanation: Coarse location gives roughly city-block to a few km accuracy.
Discuss this question
3. Converting coordinates into a street address is called: Mapping Geofencing Reverse geocoding Triangulation Answer: C) Reverse geocoding
Explanation: Geocoder.getFromLocation performs reverse geocoding.
Discuss this question
4. "Fused" location means it combines: Maps and SMS Two apps Bluetooth and NFC only GPS, Wi-Fi, cell towers and sensors to give the best location efficiently Answer: D) GPS, Wi-Fi, cell towers and sensors to give the best location efficiently
Explanation: The fused provider blends multiple sources.
Discuss this question
5. Which method requests a fresh single location fix? requestPermissions() getCurrentLocation(priority, token) getLastLocation() getAddress() Answer: B) getCurrentLocation(priority, token)
Explanation: getCurrentLocation obtains a new location; getLastLocation may be cached or null.
Discuss this question
6. On the emulator, a test location is set from: SDK Manager Logcat Extended controls → Location Gradle Answer: C) Extended controls → Location
Explanation: The emulator's extended controls simulate GPS positions.
Discuss this question
7. FusedLocationProviderClient is provided by: Room The Android SDK core only Google Play services (play-services-location) Retrofit Answer: C) Google Play services (play-services-location)
Explanation: It is part of Google Play services' location APIs.
Discuss this question
8. loc.accuracy returns: The number of satellites The estimated horizontal accuracy radius in metres The altitude The speed in km/h Answer: B) The estimated horizontal accuracy radius in metres
Explanation: Accuracy is a radius in metres with 68 % confidence.
Discuss this question
9. Why does the lab remove location updates in onPause()? To crash the app Because permission expires To save battery when the screen is not visible To speed up Gradle Answer: C) To save battery when the screen is not visible
Explanation: Continuous GPS use drains the battery.
Discuss this question
10. Which Activity Result contract requests several permissions at once? RequestMultiplePermissions RequestPermission StartActivityForResult TakePicture Answer: A) RequestMultiplePermissions
Explanation: RequestMultiplePermissions returns a map of permission → granted.
Discuss this question
11. Which permission gives precise GPS-level location? INTERNET ACCESSNETWORKSTATE ACCESSFINELOCATION ACCESSCOARSELOCATION Answer: C) ACCESSFINELOCATION
Explanation: FINE location is precise; COARSE is approximate.
Discuss this question
12. Which priority gives the most accurate (GPS) location? PRIORITYLOWPOWER PRIORITYPASSIVE PRIORITYBALANCEDPOWERACCURACY Priority.PRIORITYHIGHACCURACY Answer: D) Priority.PRIORITYHIGHACCURACY
Explanation: High accuracy uses GPS when available.
Discuss this question
Practise Lab: Current Location Coordinates MCQs
More Computer Science chapters