Android Development MCQs with answers Page - 21

Here, you will find a collection of MCQ questions on Android Development. Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 832.27K Points
Coach

Q. Which folder contains the drawable resources?

  • (A) res/images
  • (B) res/layout
  • (C) res/drawable
  • (D) res/raw

A

Admin • 832.27K Points
Coach

Q. Which method is used to save data in SharedPreferences?

  • (A) commit()
  • (B) save()
  • (C) put()
  • (D) apply()

A

Admin • 832.27K Points
Coach

Q. Which Android component is best for one-time alert messages?

  • (A) AlertDialog
  • (B) Snackbar
  • (C) Toast
  • (D) Notification

A

Admin • 832.27K Points
Coach

Q. What is the parent class of all activities in Android?

  • (A) Context
  • (B) AppCompatActivity
  • (C) Activity
  • (D) FragmentActivity

A

Admin • 832.27K Points
Coach

Q. Which component is used for dependency injection in Android?

  • (A) Dagger
  • (B) Retrofit
  • (C) Glide
  • (D) OkHttp

A

Admin • 832.27K Points
Coach

Q. What does the 'res' folder in an Android project contain?

  • (A) Java source code
  • (B) Resource files like layouts and strings
  • (C) Compiled output
  • (D) Test cases

A

Admin • 832.27K Points
Coach

Q. What is the function of the Android ViewModel?

  • (A) To update layouts
  • (B) To manage UI-related data in a lifecycle-aware way
  • (C) To control app themes
  • (D) To bind UI components

A

Admin • 832.27K Points
Coach

Q. Which permission is required to access the camera in Android?

  • (A) android.permission.USE_CAMERA
  • (B) android.permission.CAMERA
  • (C) android.permission.ACCESS_CAMERA
  • (D) android.permission.READ_CAMERA

A

Admin • 832.27K Points
Coach

Q. Which lifecycle method is called when an activity is restarted?

  • (A) onCreate()
  • (B) onRestart()
  • (C) onResume()
  • (D) onStart()

A

Admin • 832.27K Points
Coach

Q. Which class is used to create a floating message at the bottom of the screen?

  • (A) Toast
  • (B) AlertDialog
  • (C) Snackbar
  • (D) Dialog

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ