MCQs / Computer Science / Lab: Campus Feedback App (Mini Project)

Lab: Campus Feedback App (Mini Project) MCQs — Computer Science

11 multiple-choice questions on Lab: Campus Feedback App (Mini Project) 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. Does the Campus Feedback App need the INTERNET or SENDSMS permission to send feedback?

  1. Both
  2. Only SENDSMS
  3. Neither – the email app sends the message
  4. Only INTERNET

Answer: C) Neither – the email app sends the message

Explanation: The implicit email intent delegates sending to the email app.

Discuss this question

2. The email subject in the lab is built as:

  1. Only the message text
  2. The coordinates
  3. The app name only
  4. "[Type] Area – RollNo", e.g. [Complaint] Library – BSCS-23-014

Answer: D) "[Type] Area – RollNo", e.g. [Complaint] Library – BSCS-23-014

Explanation: A structured subject helps the admin sort feedback.

Discuss this question

3. Which widget in the lab lets the student choose the campus area from a list?

  1. SeekBar
  2. Spinner
  3. CheckBox
  4. RadioButton

Answer: B) Spinner

Explanation: The Spinner is filled from the areas string-array.

Discuss this question

4. Which link included in the email body lets the admin open the location in a browser or Maps?

  1. mailto:lat,lng
  2. https://maps.google.com/?q=lat,lng
  3. smsto:lat,lng
  4. tel:lat,lng

Answer: B) https://maps.google.com/?q=lat,lng

Explanation: A Google Maps URL with coordinates opens the location anywhere.

Discuss this question

5. What is the purpose of the 10-second countdown before opening email?

  1. To compress the email
  2. To give the student a chance to cancel and edit (undo window) while the location is attached
  3. To charge the battery
  4. To slow down the app

Answer: B) To give the student a chance to cancel and edit (undo window) while the location is attached

Explanation: The countdown acts as a cancel/undo window.

Discuss this question

6. If location permission is denied, the app should:

  1. Send an SMS instead
  2. Still allow feedback to be sent, marking location as not available
  3. Crash
  4. Close immediately

Answer: B) Still allow feedback to be sent, marking location as not available

Explanation: Graceful degradation keeps the core feature working.

Discuss this question

7. Which API gives a fresh high-accuracy location fix in the lab?

  1. Geocoder.getFromLocationName()
  2. FusedLocationProviderClient.getCurrentLocation()
  3. LocationManager.getLastKnownLocation only
  4. ConnectivityManager

Answer: B) FusedLocationProviderClient.getCurrentLocation()

Explanation: The fused provider returns the current location.

Discuss this question

8. Why is the student's name stored in SharedPreferences?

  1. So it is filled in automatically the next time the app opens
  2. To send it by SMS
  3. Because email requires it
  4. To get the location

Answer: A) So it is filled in automatically the next time the app opens

Explanation: Remembering details improves usability.

Discuss this question

9. Why does the app show the success dialog in the activity-result callback instead of checking a result code?

  1. Because email needs internet permission
  2. Because Gmail always returns RESULTOK
  3. Because dialogs cannot be shown otherwise
  4. Email apps do not return a reliable result code, so the app confirms when the user returns

Answer: D) Email apps do not return a reliable result code, so the app confirms when the user returns

Explanation: The callback runs when the user comes back from the email app.

Discuss this question

10. android:entries="@array/areas" on a Spinner:

  1. Fills the Spinner with items from a string-array resource
  2. Opens the email app
  3. Creates a menu
  4. Sets the background

Answer: A) Fills the Spinner with items from a string-array resource

Explanation: entries binds a string-array to the Spinner without an adapter in code.

Discuss this question

11. Which call cancels the running countdown when the student presses Cancel?

  1. timer.stop()
  2. timer.pause()
  3. timer.cancel()
  4. finish()

Answer: C) timer.cancel()

Explanation: CountDownTimer.cancel() stops it.

Discuss this question

Practise Lab: Campus Feedback App (Mini Project) MCQs

More Computer Science chapters