Android Development MCQs with answers Page - 22

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 tool is used for creating vector images in Android?

  • (A) ShapeDrawable
  • (B) BitmapEditor
  • (C) VectorDrawable
  • (D) ImageView

A

Admin • 832.27K Points
Coach

Q. What does 'match_parent' mean in layout XML?

  • (A) Match the size of content
  • (B) Match the screen size
  • (C) Match the size of parent view
  • (D) None of the above

A

Admin • 832.27K Points
Coach

Q. Which Android component is used for background tasks that need to run even if the app is closed?

  • (A) AsyncTask
  • (B) Handler
  • (C) Service
  • (D) LiveData

A

Admin • 832.27K Points
Coach

Q. Which method clears all activities from the stack except the one being started?

  • (A) Intent.FLAG_ACTIVITY_CLEAR_TOP
  • (B) Intent.FLAG_ACTIVITY_NEW_TASK
  • (C) Intent.FLAG_ACTIVITY_CLEAR_TASK
  • (D) Intent.FLAG_ACTIVITY_NO_HISTORY

A

Admin • 832.27K Points
Coach

Q. Which layout is best suited for displaying items in a scrollable vertical list?

  • (A) LinearLayout
  • (B) RelativeLayout
  • (C) ScrollView
  • (D) RecyclerView

A

Admin • 832.27K Points
Coach

Q. What is the purpose of 'strings.xml' in Android?

  • (A) To store configuration files
  • (B) To define layout settings
  • (C) To store all string resources
  • (D) To declare style attributes

A

Admin • 832.27K Points
Coach

Q. Which of these is a proper use of a Fragment?

  • (A) To handle Bluetooth connections
  • (B) To manage application context
  • (C) To create reusable UI components within an activity
  • (D) To schedule jobs

A

Admin • 832.27K Points
Coach

Q. Which method is used to stop a foreground service?

  • (A) stopForeground()
  • (B) stopSelf()
  • (C) finish()
  • (D) stopService()

A

Admin • 832.27K Points
Coach

Q. Which of the following is used to load data asynchronously in Android?

  • (A) LiveData
  • (B) AsyncTask
  • (C) ViewModel
  • (D) ContentResolver

A

Admin • 832.27K Points
Coach

Q. Which Android component is responsible for responding to system-wide broadcasts?

  • (A) Activity
  • (B) Service
  • (C) BroadcastReceiver
  • (D) ContentProvider

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