Android Development MCQs with answers Page - 26

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 • 833K Points
Coach

Q. Which XML attribute is used to set the background color of a view?

  • (A) android:color
  • (B) android:bgColor
  • (C) android:background
  • (D) android:layout_background

A

Admin • 833K Points
Coach

Q. Which class is used to store data in key-value pairs persistently in Android?

  • (A) DatabaseHelper
  • (B) SharedPreferences
  • (C) Intent
  • (D) Bundle

A

Admin • 833K Points
Coach

Q. What is the use of `Handler` in Android?

  • (A) To inflate layouts
  • (B) To handle permissions
  • (C) To schedule code execution on a thread
  • (D) To manage app themes

A

Admin • 833K Points
Coach

Q. Which file contains information about app components and permissions?

  • (A) MainActivity.java
  • (B) AndroidManifest.xml
  • (C) res/values/strings.xml
  • (D) build.gradle

A

Admin • 833K Points
Coach

Q. Which Android architecture component handles background tasks with guaranteed execution?

  • (A) LiveData
  • (B) WorkManager
  • (C) ViewModel
  • (D) JobService

A

Admin • 833K Points
Coach

Q. Which tag is used to define an activity in the AndroidManifest.xml file?

  • (A) <activity>
  • (B) <intent>
  • (C) <component>
  • (D) <appActivity>

A

Admin • 833K Points
Coach

Q. Which of the following is the base class for all layout classes in Android?

  • (A) ViewGroup
  • (B) LayoutInflater
  • (C) Activity
  • (D) ConstraintLayout

A

Admin • 833K Points
Coach

Q. What does the `android:gravity` attribute control?

  • (A) The position of the view within its parent
  • (B) The position of the content within the view
  • (C) The stacking of views
  • (D) The height of the view

A

Admin • 833K Points
Coach

Q. Which method is used to unregister a BroadcastReceiver?

  • (A) removeReceiver()
  • (B) unregisterReceiver()
  • (C) detachReceiver()
  • (D) stopReceiver()

A

Admin • 833K Points
Coach

Q. Which attribute specifies the ID of a view in XML?

  • (A) android:tag
  • (B) android:id
  • (C) android:ref
  • (D) android:name

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