Home > MCQs > IT & Programming > Android MCQs

Android MCQ

Android Quick Quiz

Question 1 of 10
  • To preserve on-device memory, how might you determine that the user's device has limited storage capabilities?

    Answer & Explanation

    Correct Answer: Use the ActivityManager.isLowRamDevice() method to find out whether a device defines itself as "low RAM."

    Note: This Question is unanswered, help us to find answer for this one

  • Which XML attribute should be used to make an Image View accessible?

    Answer & Explanation

    Correct Answer: Android:contentDescription

    Note: This Question is unanswered, help us to find answer for this one

  • Which source set is _not_ available to you by default when Android Studio creates a new project?

    Answer & Explanation

    Correct Answer: Main

    Note: This Question is unanswered, help us to find answer for this one

  • What allows you to properly restore a user's state when an activity is restarted?

    Answer & Explanation

    Correct Answer: All of these answers

    Note: This Question is unanswered, help us to find answer for this one

  • The Android system kills process when it needs to free up memory. The likelihood of the system killing a given process depends on the state of the process and the activity at the time. With combination of process and activity state is most likely to be killed?

    Answer & Explanation

    Correct Answer: Process:In the background;Activity:Is stopped

    Note: This Question is unanswered, help us to find answer for this one

  • You want to include about and setting modules in your project. Which files accurately reflects their inclusion?

    Answer & Explanation

    Correct Answer: In settings.gradle:include ':app',':about' ':settings'

    Note: This Question is unanswered, help us to find answer for this one

  • You need to get a list of devices that are attached to your computer with USB debugging enable. Which command would execute using the Android Debug Bridge?

    Answer & Explanation

    Correct Answer: Adb devices

    Note: This Question is unanswered, help us to find answer for this one

  • Given the test class below, which code snippet would be a correct assertion?

    Answer & Explanation

    Correct Answer: AssertNotNull(resultAdd)

    Note: This Question is unanswered, help us to find answer for this one

  • What is not a benefit of externalizing app resources such as image and string from a code?

    Answer & Explanation

    Correct Answer: It allows you to have more performant applications because the code and resources are separated.

    Note: This Question is unanswered, help us to find answer for this one

  • When would you use the ActivityCompat.shouldShowRequestPermissionRationale() function?

    Answer & Explanation

    Correct Answer: when a user has previously denied the request for a given permission and selected "Don't ask again," but you need the permission for your app to function

    Note: This Question is unanswered, help us to find answer for this one

  • Android Quick Quiz

    battery

    Poor Results!

    You need a lot of improvement.

    Just don't give up!

    Correct Answers: 0/10

    Start Practicing with our MCQs given below.