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:

  1. Both ACCESSFINELOCATION and ACCESSCOARSELOCATION
  2. Only ACCESSFINELOCATION
  3. ACCESSBACKGROUNDLOCATION first
  4. 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. 1–3 km
  2. 1 cm
  3. 5 m
  4. 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:

  1. Mapping
  2. Geofencing
  3. Reverse geocoding
  4. Triangulation

Answer: C) Reverse geocoding

Explanation: Geocoder.getFromLocation performs reverse geocoding.

Discuss this question

4. "Fused" location means it combines:

  1. Maps and SMS
  2. Two apps
  3. Bluetooth and NFC only
  4. 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?

  1. requestPermissions()
  2. getCurrentLocation(priority, token)
  3. getLastLocation()
  4. 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:

  1. SDK Manager
  2. Logcat
  3. Extended controls → Location
  4. Gradle

Answer: C) Extended controls → Location

Explanation: The emulator's extended controls simulate GPS positions.

Discuss this question

7. FusedLocationProviderClient is provided by:

  1. Room
  2. The Android SDK core only
  3. Google Play services (play-services-location)
  4. 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:

  1. The number of satellites
  2. The estimated horizontal accuracy radius in metres
  3. The altitude
  4. 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()?

  1. To crash the app
  2. Because permission expires
  3. To save battery when the screen is not visible
  4. 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?

  1. RequestMultiplePermissions
  2. RequestPermission
  3. StartActivityForResult
  4. TakePicture

Answer: A) RequestMultiplePermissions

Explanation: RequestMultiplePermissions returns a map of permission → granted.

Discuss this question

11. Which permission gives precise GPS-level location?

  1. INTERNET
  2. ACCESSNETWORKSTATE
  3. ACCESSFINELOCATION
  4. ACCESSCOARSELOCATION

Answer: C) ACCESSFINELOCATION

Explanation: FINE location is precise; COARSE is approximate.

Discuss this question

12. Which priority gives the most accurate (GPS) location?

  1. PRIORITYLOWPOWER
  2. PRIORITYPASSIVE
  3. PRIORITYBALANCEDPOWERACCURACY
  4. 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