android banner

Android Multiple Choice Questions (MCQs) and Answers

Master Android with Practice MCQs. Explore our curated collection of Multiple Choice Questions. Ideal for placement and interview preparation, our questions range from basic to advanced, ensuring comprehensive coverage of Android concepts. Begin your placement preparation journey now!

Q1

Q1 What is the primary function of the Android operating system?

A

To manage desktop applications and servers

B

To provide a platform for developing mobile applications for smartphones and tablets

C

To improve the speed of internet connections on mobile devices

D

To create static web pages

Q2

Q2 Which company developed Android?

A

Microsoft

B

Apple

C

Google

D

Facebook

Q3

Q3 Android applications are packaged in what file format?

A

APK

B

EXE

C

ZIP

D

JAR

Q4

Q4 Which language is primarily used for Android app development?

A

Python

B

C++

C

Kotlin

D

Ruby

Q5

Q5 What is the role of the Dalvik Virtual Machine (DVM) in Android?

A

To manage file storage

B

To manage application components

C

To interpret and run bytecode for Android applications

D

To provide a graphical user interface

Q6

Q6 What is the core component in Android for UI creation?

A

Services

B

Broadcast Receivers

C

Activities

D

Content Providers

Q7

Q7 What does the AndroidManifest.xml file do in an Android project?

A

Defines the structure of the UI

B

Contains metadata for the app, including activities, permissions, and components

C

Holds app resources

D

Contains Java code for the app

Q8

Q8 Which method is used to start a new activity in Android?

A

startActivity()

B

launchActivity()

C

beginActivity()

D

initActivity()

Q9

Q9 An Android developer notices that their application crashes whenever they rotate the device screen. What is the most likely cause of this issue?

A

The application does not have internet access

B

The application is not handling the screen orientation changes properly

C

The application uses too much memory

D

The device's battery is low

Q10

Q10 Which of the following is a component of the Android Architecture?

A

Libraries

B

Services

C

ViewModel

D

UI

Q11

Q11 What is the role of the Android Runtime (ART) in Android architecture?

A

To manage UI components

B

To run and optimize apps

C

To handle system processes

D

To interact with the user

Q12

Q12 In Android architecture, which layer directly interacts with hardware?

A

Application Layer

B

Application Framework

C

Libraries

D

Linux Kernel

Q13

Q13 What is the purpose of the Application Framework layer in Android architecture?

A

To provide reusable components and services for developers

B

To manage the underlying Linux Kernel

C

To store app data

D

To handle network requests

Q14

Q14 Which component in the Android architecture is responsible for managing the lifecycle of applications?

A

Content Provider

B

Activity Manager

C

Broadcast Receiver

D

Service

Q15

Q15 What role do Content Providers play in Android?

A

Handling background tasks

B

Providing app data storage

C

Enabling data sharing between apps

D

Managing the app UI

Q16

Q16 Which of the following components allows apps to receive and respond to system-wide events?

A

Activity

B

Service

C

Broadcast Receiver

D

Content Provider

Q17

Q17 How do you declare a service in the AndroidManifest.xml file?

A

<service android:name=".MyService"/>

B

<service name="MyService"/>

C

<service android:class="MyService"/>

D

<service android:name="MyService.class"/>

Q18

Q18 How do you declare permissions for accessing the internet in AndroidManifest.xml?

A

<uses-permission android:name="android.permission.INTERNET"/>

B

<permission android:name="android.permission.ACCESS_WIFI_STATE"/>

C

<uses android:permission="INTERNET"/>

D

<grant-permission android:name="INTERNET"/>

Q19

Q19 An Android app crashes when it tries to access a database. What could be the most likely cause?

A

Incorrect database schema

B

The app does not have the required permission

C

There is a syntax error in SQL query

D

Database is not initialized

Q20

Q20 Why would an Android app fail to bind to a service it declared?

A

Service not properly declared in AndroidManifest

B

No internet access

C

Activity not bound to the service

D

Too many background tasks running

Q21

Q21 What is the main purpose of Android Studio?

A

To write web apps

B

To develop iOS applications

C

To develop Android applications

D

To develop desktop applications

Q22

Q22 What file format does Android Studio generate as the final output for apps?

A

APK

B

EXE

C

JAR

D

WAR

Q23

Q23 What is the purpose of the Gradle build system in Android Studio?

A

To optimize device battery

B

To manage app builds and dependencies

C

To write app code

D

To update Android SDK

Q24

Q24 Where do you configure the minimum SDK version in Android Studio?

A

build.gradle file

B

AndroidManifest.xml

C

proguard-rules.pro

D

app.properties

Q25

Q25 What is the role of the Android Virtual Device (AVD) Manager in Android Studio?

A

To manage app resources

B

To test Android apps on virtual devices

C

To deploy apps to real devices

D

To publish apps on Google Play

Q26

Q26 What is the significance of 'Instant Run' in Android Studio?

A

It allows quick access to code templates

B

It reduces the time required to run app changes

C

It helps with memory management

D

It disables code changes

Q27

Q27 Which Gradle task in Android Studio is used to build the APK?

A

assembleDebug

B

buildApp

C

compileDebug

D

runApp

Q28

Q28 How do you define dependencies for libraries in an Android project?

A

By using 'dependencies' block in build.gradle

B

By adding it in AndroidManifest.xml

C

By writing it in the MainActivity

D

By specifying it in proguard-rules.pro

Q29

Q29 How do you create a new Android Virtual Device (AVD) in Android Studio?

A

Tools > SDK Manager > New AVD

B

Tools > AVD Manager > Create Virtual Device

C

File > New > Android Virtual Device

D

Build > New Device

Q30

Q30 An app fails to build in Android Studio due to missing dependencies. What is the likely solution?

A

Restart the IDE

B

Check the build.gradle file for missing dependencies

C

Uninstall and reinstall Android Studio

D

Update the AndroidManifest file

...
ad verticalad vertical
ad