wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Android Development Multiple Choice Questions (21-40)

Total questions: 60

Worksheet time: 30mins

Name
Class
Date
1.

Android Studio is based on which IDE?

a)

Eclipse

b)

IntelliJ IDEA

c)

NetBeans

d)

Visual Studio

2.

The default programming language for Android development is:

a)

Java

b)

Kotlin

c)

Python

d)

Swift

3.

The file used to define permissions and activities is:

a)

build.gradle

b)

AndroidManifest.xml

c)

MainActivity.java

d)

strings.xml

4.

The AVD stands for:

a)

Android Virtual Device

b)

Android Visual Display

c)

Active Virtual Drive

d)

Android Version Driver

5.

The SDK Manager is used for:

a)

Debugging apps

b)

Managing emulators

c)

Installing Android packages

d)

Writing Java code

6.

To run an Android app, you can use:

a)

Only a real device

b)

Only an emulator

c)

Both emulator and real device

d)

None

7.

The main entry point of an Android app is the:

a)

MainActivity

b)

Manifest file

c)

Gradle script

d)

res folder

8.

Logcat in Android Studio is used for:

a)

File management

b)

App debugging

c)

Resource creation

d)

UI designing

9.

Gradle is responsible for:

a)

Compiling and building the project

b)

Designing UI

c)

Storing app icons

d)

Managing runtime permissions

10.

The extension for an Android application package is:

a)

.zip

b)

.apk

c)

.jar

d)

.exe

11.

Activity represents:

a)

Background task

b)

Single screen with UI

c)

Database

d)

None

12.

Which method is called first in an Activity lifecycle?

a)

onStart()

b)

onCreate()

c)

onResume()

d)

onDestroy()

13.

To navigate from one activity to another, we use:

a)

Fragment

b)

Intent

c)

Handler

d)

Toast

14.

To change the app icon, we edit the:

a)

drawable folder

b)

manifest

c)

mipmap folder

d)

assets

15.

Android resources are stored in which directory?

a)

/src

b)

/res

c)

/manifest

d)

/assets

16.

Implicit intents are used to:

a)

Start internal activities only

b)

Call external applications

c)

Access private APIs

d)

None

17.

The method to finish an Activity is:

a)

end()

b)

finish()

c)

stop()

d)

close()

18.

Which component handles background processing?

a)

Activity

b)

Service

c)

Content Provider

d)

Fragment

19.

What does an Intent do?

a)

Displays UI

b)

Sends a message between components

c)

Compiles code

d)

Manages layout

20.

The AndroidManifest.xml contains:

a)

Java code

b)

Permissions and activity declarations

c)

UI design

d)

Libraries

21.

Toast in Android is used to:

a)

Display short messages

b)

Show notifications

c)

Display dialogs

d)

Run services

22.

AlertDialog is mainly used for:

a)

Showing progress

b)

Taking user confirmation

c)

Running background tasks

d)

Updating databases

23.

Which layout arranges items in a single row or column?

a)

LinearLayout

b)

FrameLayout

c)

RelativeLayout

d)

GridLayout

24.

Which layout allows overlapping views?

a)

FrameLayout

b)

LinearLayout

c)

TableLayout

d)

RelativeLayout

25.

TableLayout arranges its elements in:

a)

List

b)

Grid of rows and columns

c)

Stack

d)

Frames

26.

Which method displays a Toast message?

a)

Toast.show()

b)

makeText().show()

c)

Toast.display()

d)

message.show()

27.

Notifications appear in:

a)

Home screen

b)

Notification bar

c)

Drawer

d)

Dialog

28.

RelativeLayout positions its child views using:

a)

Index order

b)

Relationships (above, below, etc.)

c)

Coordinates

d)

Tables

29.

GridLayout is useful for:

a)

Displaying a grid of images or items

b)

Showing a list

c)

Background processing

d)

None

30.

To create layout programmatically, we use:

a)

Java/Kotlin code

b)

XML only

c)

Resource editor

d)

Manifest

31.

The attribute used in XML for click events:

a)

onClick

b)

clickAction

c)

onTap

d)

actionClick

32.

Listener interfaces handle:

a)

Database

b)

User events

c)

Menus

d)

Threads

33.

The Action Bar is mainly used for:

a)

Navigation and actions

b)

UI layout

c)

Toast messages

d)

Services

34.

To go back to the previous activity, we use:

a)

finish()

b)

back()

c)

destroy()

d)

close()

35.

Menu items are defined in:

a)

menu.xml

b)

activity_main.xml

c)

strings.xml

d)

colors.xml

36.

Popup menu is used for:

a)

Permanent menu

b)

Contextual actions

c)

Temporary action list

d)

Dialog replacement

37.

Context menu appears:

a)

On long press

b)

On click

c)

On swipe

d)

On hold and drag

38.

Option menu is displayed:

a)

In Action Bar

b)

On long press

c)

Bottom of screen

d)

Notification area

39.

Dropdown navigation is part of:

a)

Action Bar

b)

ListView

c)

Layout

d)

Intent

40.

The method to inflate a menu file is:

a)

onCreateMenu()

b)

onCreateOptionsMenu()

c)

loadMenu()

d)

inflateMenu()

41.

ListView is used to:

a)

Display a scrollable list of items

b)

Play media

c)

Handle notifications

d)

Display dialogs

42.

ListAdapter connects:

a)

Database to UI

b)

Data source to ListView

c)

Intent to Activity

d)

None

43.

To customize list items, we use:

a)

Custom Adapter

b)

Intent

c)

Toast

d)

Layout Manager

44.

GridView displays items in:

a)

Rows only

b)

Columns only

c)

Two-dimensional grid

d)

List format

45.

Bitmap is used to:

a)

Store text

b)

Store image data

c)

Store layouts

d)

Store colors only

46.

Hardware acceleration improves:

a)

CPU performance

b)

GPU rendering

c)

File I/O

d)

Network speed

47.

A fragment represents:

a)

A portion of UI in an activity

b)

A whole activity

c)

A service

d)

A file

48.

Canvas in Android is used for:

a)

Custom drawing

b)

Data storage

c)

Menu design

d)

Threading

49.

Transparency and shades are related to:

a)

Colors and graphics

b)

Menus

c)

Notifications

d)

Services

50.

The Canvas Demo App demonstrates:

a)

Custom drawing on UI

b)

Database operations

c)

File handling

d)

Networking

51.

Property animation allows:

a)

Moving or changing UI properties

b)

Saving files

c)

Sending intents

d)

Compiling code

52.

Which class handles animation timing?

a)

Animator

b)

AnimationSet

c)

AnimationTimer

d)

FrameRate

53.

SharedPreferences store:

a)

Large files

b)

Key-value pairs

c)

Databases

d)

Bitmaps

54.

Which storage is accessible by other apps?

a)

Internal storage

b)

External storage

c)

SharedPreferences

d)

Cache

55.

SQLite is a:

a)

File system

b)

Lightweight database

c)

UI library

d)

Layout

56.

To access SQLite, Android provides:

a)

SQLiteOpenHelper

b)

SQLiteManager

c)

DBConnection

d)

SQLHelper

57.

To resample time-based data, we use:

a)

Time picker

b)

Resampler class

c)

DateUtils

d)

None

58.

Public storage can be accessed using:

a)

File API

b)

ContentResolver

c)

Internal storage methods

d)

Manifest file

59.

Preferences in Android are usually used for:

a)

User settings

b)

Layouts

c)

Notifications

d)

Animations

60.

Android animation XML files are stored in:

a)

/res/anim/

b)

/res/drawable/

c)

/res/layout/

d)

/res/menu/