NEW
Font size
WorksheetsAndroid Development Multiple Choice Questions (21-40)
Total questions: 60
Worksheet time: 30mins
Android Studio is based on which IDE?
Eclipse
IntelliJ IDEA
NetBeans
Visual Studio
The default programming language for Android development is:
Java
Kotlin
Python
Swift
The file used to define permissions and activities is:
build.gradle
AndroidManifest.xml
MainActivity.java
strings.xml
The AVD stands for:
Android Virtual Device
Android Visual Display
Active Virtual Drive
Android Version Driver
The SDK Manager is used for:
Debugging apps
Managing emulators
Installing Android packages
Writing Java code
To run an Android app, you can use:
Only a real device
Only an emulator
Both emulator and real device
None
The main entry point of an Android app is the:
MainActivity
Manifest file
Gradle script
res folder
Logcat in Android Studio is used for:
File management
App debugging
Resource creation
UI designing
Gradle is responsible for:
Compiling and building the project
Designing UI
Storing app icons
Managing runtime permissions
The extension for an Android application package is:
.zip
.apk
.jar
.exe
Activity represents:
Background task
Single screen with UI
Database
None
Which method is called first in an Activity lifecycle?
onStart()
onCreate()
onResume()
onDestroy()
To navigate from one activity to another, we use:
Fragment
Intent
Handler
Toast
To change the app icon, we edit the:
drawable folder
manifest
mipmap folder
assets
Android resources are stored in which directory?
/src
/res
/manifest
/assets
Implicit intents are used to:
Start internal activities only
Call external applications
Access private APIs
None
The method to finish an Activity is:
end()
finish()
stop()
close()
Which component handles background processing?
Activity
Service
Content Provider
Fragment
What does an Intent do?
Displays UI
Sends a message between components
Compiles code
Manages layout
The AndroidManifest.xml contains:
Java code
Permissions and activity declarations
UI design
Libraries
Toast in Android is used to:
Display short messages
Show notifications
Display dialogs
Run services
AlertDialog is mainly used for:
Showing progress
Taking user confirmation
Running background tasks
Updating databases
Which layout arranges items in a single row or column?
LinearLayout
FrameLayout
RelativeLayout
GridLayout
Which layout allows overlapping views?
FrameLayout
LinearLayout
TableLayout
RelativeLayout
TableLayout arranges its elements in:
List
Grid of rows and columns
Stack
Frames
Which method displays a Toast message?
Toast.show()
makeText().show()
Toast.display()
message.show()
Notifications appear in:
Home screen
Notification bar
Drawer
Dialog
RelativeLayout positions its child views using:
Index order
Relationships (above, below, etc.)
Coordinates
Tables
GridLayout is useful for:
Displaying a grid of images or items
Showing a list
Background processing
None
To create layout programmatically, we use:
Java/Kotlin code
XML only
Resource editor
Manifest
The attribute used in XML for click events:
onClick
clickAction
onTap
actionClick
Listener interfaces handle:
Database
User events
Menus
Threads
The Action Bar is mainly used for:
Navigation and actions
UI layout
Toast messages
Services
To go back to the previous activity, we use:
finish()
back()
destroy()
close()
Menu items are defined in:
menu.xml
activity_main.xml
strings.xml
colors.xml
Popup menu is used for:
Permanent menu
Contextual actions
Temporary action list
Dialog replacement
Context menu appears:
On long press
On click
On swipe
On hold and drag
Option menu is displayed:
In Action Bar
On long press
Bottom of screen
Notification area
Dropdown navigation is part of:
Action Bar
ListView
Layout
Intent
The method to inflate a menu file is:
onCreateMenu()
onCreateOptionsMenu()
loadMenu()
inflateMenu()
ListView is used to:
Display a scrollable list of items
Play media
Handle notifications
Display dialogs
ListAdapter connects:
Database to UI
Data source to ListView
Intent to Activity
None
To customize list items, we use:
Custom Adapter
Intent
Toast
Layout Manager
GridView displays items in:
Rows only
Columns only
Two-dimensional grid
List format
Bitmap is used to:
Store text
Store image data
Store layouts
Store colors only
Hardware acceleration improves:
CPU performance
GPU rendering
File I/O
Network speed
A fragment represents:
A portion of UI in an activity
A whole activity
A service
A file
Canvas in Android is used for:
Custom drawing
Data storage
Menu design
Threading
Transparency and shades are related to:
Colors and graphics
Menus
Notifications
Services
The Canvas Demo App demonstrates:
Custom drawing on UI
Database operations
File handling
Networking
Property animation allows:
Moving or changing UI properties
Saving files
Sending intents
Compiling code
Which class handles animation timing?
Animator
AnimationSet
AnimationTimer
FrameRate
SharedPreferences store:
Large files
Key-value pairs
Databases
Bitmaps
Which storage is accessible by other apps?
Internal storage
External storage
SharedPreferences
Cache
SQLite is a:
File system
Lightweight database
UI library
Layout
To access SQLite, Android provides:
SQLiteOpenHelper
SQLiteManager
DBConnection
SQLHelper
To resample time-based data, we use:
Time picker
Resampler class
DateUtils
None
Public storage can be accessed using:
File API
ContentResolver
Internal storage methods
Manifest file
Preferences in Android are usually used for:
User settings
Layouts
Notifications
Animations
Android animation XML files are stored in:
/res/anim/
/res/drawable/
/res/layout/
/res/menu/
