Android Development MCQs with answers Page - 11

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

R

Ravina • 3.96K Points
Extraordinary

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

  • (A) ACCESS_NETWORK_STATE
  • (B) INTERNET
  • (C) NETWORK_ACCESS
  • (D) ACCESS_WIFI_STATE

R

Ravina • 3.96K Points
Extraordinary

Q. Which method is used to create an options menu in Android?

  • (A) onCreateOptionsMenu()
  • (B) onCreateMenu()
  • (C) createMenu()
  • (D) onOptionsCreated()

R

Ravina • 3.96K Points
Extraordinary

Q. Which view is used to display a single child view with specific alignment?

  • (A) FrameLayout
  • (B) LinearLayout
  • (C) RelativeLayout
  • (D) GridLayout

R

Ravina • 3.96K Points
Extraordinary

Q. Which drawable folder is best for high-density screens?

  • (A) drawable-ldpi
  • (B) drawable-mdpi
  • (C) drawable-hdpi
  • (D) drawable-xxhdpi

R

Ravina • 3.96K Points
Extraordinary

Q. What does 'match_parent' do in a layout?

  • (A) Matches the size of the content
  • (B) Centers the view
  • (C) Fills the parent layout
  • (D) Matches the text size

R

Ravina • 3.96K Points
Extraordinary

Q. What is the default launch mode for an Activity?

  • (A) singleTop
  • (B) singleTask
  • (C) standard
  • (D) singleInstance

R

Ravina • 3.96K Points
Extraordinary

Q. Which Android component interacts with users directly?

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

R

Ravina • 3.96K Points
Extraordinary

Q. What is the use of the 'res/values/styles.xml' file?

  • (A) To store database configuration
  • (B) To define application themes and styles
  • (C) To declare Android components
  • (D) To register receivers

R

Ravina • 3.96K Points
Extraordinary

Q. Which method is used to destroy a Fragment?

  • (A) onRemove()
  • (B) destroyFragment()
  • (C) onDestroyView()
  • (D) deleteFragment()

R

Ravina • 3.96K Points
Extraordinary

Q. Which annotation helps avoid memory leaks with lifecycle-aware components?

  • (A) @AvoidLeak
  • (B) @MainThread
  • (C) @LifecycleAware
  • (D) @OnLifecycleEvent

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