14 Sep 100 Android MCQ (Multiple Choice Questions) with Answers
Show Answer
Explanation
2) Which file format is used to package and install applications on Android devices?
Show Answer
Explanation
3) What does OHA stand for in the context of Android?
Show Answer
Explanation
4) Which language was officially announced by Google as the preferred language for Android app development?
Show Answer
Explanation
5) Which file contains metadata, permissions, and registered components of an Android application?
Show Answer
Explanation
6) Which virtual machine was used in earlier Android versions before being replaced by ART (Android Runtime)?
Show Answer
Explanation
7) What is the topmost layer of the Android software stack architecture?
Show Answer
Explanation
8) Which tool converts compiled Java bytecodes (.class files) into Dalvik executable files (.dex)?
Show Answer
Explanation
9) What does ANR stand for in Android?
Show Answer
Explanation
10) Which open-source license primarily governs the core Android operating system code?
Show Answer
Explanation
11) Which fundamental Android component provides a single screen with a user interface?
Show Answer
Explanation
12) Which lifecycle method is called first when an Activity is launched?
Show Answer
Explanation
13) Which Activity lifecycle method is invoked right before an activity becomes visible to the user?
Show Answer
Explanation
14) When an Activity enters the interactive state with the user, which lifecycle method is triggered?
Show Answer
Explanation
15) Which method is called when an Activity is completely destroyed and removed from memory?
Show Answer
Explanation
16) What happens to an Activity by default when the screen orientation is rotated?
Show Answer
Explanation
17) Which method is used to attach a layout XML resource to an Activity in onCreate()?
Show Answer
Explanation
18) Which method is used to programmatically close an Activity?
Show Answer
Explanation
19) Which lifecycle method is called when an Activity is stopped and then restarted by the user?
Show Answer
Explanation
20) Which object passes state data between Activity destructions during configuration changes?
Show Answer
Explanation
21) What component is used to start a new activity or send a message within Android?
Show Answer
Explanation
22) Which type of Intent specifies the exact target component class name to launch?
Show Answer
Explanation
23) Which type of Intent declares a general action to perform without targeting a specific app component directly?
Show Answer
Explanation
24) Which tag in AndroidManifest.xml declares an activity’s ability to respond to implicit intents?
Show Answer
Explanation
25) Which method is used to launch another activity from within an existing activity?
Show Answer
Explanation
26) How do you pass simple primitive data into an Intent?
Show Answer
Explanation
27) How do you extract extra data of type String from an Intent inside the destination Activity?
Show Answer
Explanation
28) What wrapper object wraps an Intent to be executed later by another process on your app’s behalf?
Show Answer
Explanation
29) Which method call gets the result back from a launched Activity when using legacy APIs?
Show Answer
Explanation
30) Which interface optimized for Android performance allows complex data structures to be passed via Intents?
Show Answer
Explanation
31) What is a Fragment in Android development?
Show Answer
Explanation
32) Can a Fragment exist independently without being hosted by an Activity?
Show Answer
Explanation
33) Which Fragment lifecycle method is called to instantiate its user interface layout?
Show Answer
Explanation
34) Which class is used to perform actions like adding, replacing, or removing Fragments dynamically?
Show Answer
Explanation
35) Which method must be called to apply changes made during a FragmentTransaction?
Show Answer
Explanation
36) Which lifecycle callback signifies that the Fragment’s layout has been detached from its host Activity?
Show Answer
Explanation
37) Which Jetpack component simplifies implementation of navigation between Fragments?
Show Answer
Explanation
38) How can data be shared safely between Fragments belonging to the same host activity using Architecture Components?
Show Answer
Explanation
39) What method is used to pass arguments safely into a Fragment instance during creation?
Show Answer
Explanation
40) Which UI component provides sliding tabs to switch between multiple Fragments easily?
Show Answer
Explanation
41) What is the superclass of all UI graphical elements (components) in Android?
Show Answer
Explanation
42) Which layout manager arranges its child views sequentially either vertically or horizontally?
Show Answer
Explanation
43) Which layout allows positioning child elements relative to each other or the parent container?
Show Answer
Explanation
44) Which modern, flat-hierarchy layout reduces nested views to optimize UI performance?
Show Answer
Explanation
45) What is the unit recommended for specifying text size in Android XML layouts?
Show Answer
Explanation
46) What is the unit recommended for defining spacing, dimensions, and margins in Android?
Show Answer
Explanation
47) Which UI component is optimized for displaying long, dynamic lists by recycling off-screen views?
Show Answer
Explanation
48) Which component is responsible for binding data items to the view items in a RecyclerView?
Show Answer
Explanation
49) What pattern does RecyclerView force developers to implement to prevent frequent findViewById() calls?
Show Answer
Explanation
50) Which Modern UI toolkit enables building Android UIs natively using declarative Kotlin code?
Show Answer
Explanation
51) Which Android component handles operations running in the background without a UI?
Show Answer
Explanation
52) What type of Service displays a persistent notification to show it is performing user-aware background work?
Show Answer
Explanation
53) Which class responds to system-wide announcements or events (such as battery low or device boot up)?
Show Answer
Explanation
54) Which method is triggered inside a BroadcastReceiver when a registered broadcast event occurs?
Show Answer
Explanation
55) Which component manages access to a structured repository of data and facilitates sharing it across different applications?
Show Answer
Explanation
56) What scheme format does a ContentProvider use to identify data items for queries?
Show Answer
Explanation
57) Which modern Android Jetpack library is recommended for deferrable, guaranteed background job processing?
Show Answer
Explanation
58) Which method is used to stop a started Service from within the service itself?
Show Answer
Explanation
59) What happens if a heavy long-running operation is executed on the main UI thread?
Show Answer
Explanation
60) Which Kotlin feature is used to write asynchronous non-blocking code cleanly on Android?
Show Answer
Explanation
61) Which Android lightweight storage mechanism stores key-value pairs of primitive data types?
Show Answer
Explanation
62) What is the modern replacement for SharedPreferences introduced in Jetpack?
Show Answer
Explanation
63) What relational database engine comes embedded by default inside the Android platform?
Show Answer
Explanation
64) Which Jetpack persistence library provides an abstraction layer over native SQLite?
Show Answer
Explanation
65) What are the three primary components required in the Room persistence library?
Show Answer
Explanation
66) What does DAO stand for in Room database terminology?
Show Answer
Explanation
67) Which annotation marks a data class as a database table in Room?
Show Answer
Explanation
68) In Room, SQL queries are defined inside interfaces annotated with which marker?
Show Answer
Explanation
69) What object acts as a read-write pointer to result sets returned from SQLite database queries?
Show Answer
Explanation
70) To save cached files safely that automatically get wiped when memory runs low, which folder directory is used?
Show Answer
Explanation
71) What build automation system does Android Studio use to compile apps and resolve dependencies?
Show Answer
Explanation
72) Where are non-compiled raw assets like fonts, sound files, or custom JSON files stored in a project?
Show Answer
Explanation
73) What automatically generated Java class previously indexed resource IDs in standard Android builds?
Show Answer
Explanation
74) What is the extension of the newer publishing format for Google Play that optimizes APK sizes for devices?
Show Answer
Explanation
75) Which feature allows shrinking code, obfuscating names, and removing unused code during release builds?
Show Answer
Explanation
76) Which build file contains global project configurations, while another contains specific app module dependencies?
Show Answer
Explanation
77) In Android resources, where should plain human-readable strings be declared for localization support?
Show Answer
Explanation
78) Which tool permits creating, managing, and running Android virtual devices on a development machine?
Show Answer
Explanation
79) What tool command utility lets developers communicate with an attached Android device or emulator over USB?
Show Answer
Explanation
80) What is the purpose of Logcat in Android Studio?
Show Answer
Explanation
81) What architectural pattern recommended by Google separates business logic, data state, and UI?
Show Answer
Explanation
82) What is the main benefit of using a ViewModel over a standard Activity for state management?
Show Answer
Explanation
83) What lifecycle-aware observable data holder class is commonly used in MVVM architecture?
Show Answer
Explanation
84) What happens to a ViewModel instance when its associated Activity is permanently finished?
Show Answer
Explanation
85) What official dependency injection library is built on top of Dagger for Android applications?
Show Answer
Explanation
86) Which Jetpack library safely binds layout views directly to data sources declared in XML layouts?
Show Answer
Explanation
87) What is the lighter alternative to DataBinding that generates direct view references without XML expressions?
Show Answer
Explanation
88) In clean architecture, what component contains the core business rules and use cases of an application?
Show Answer
Explanation
89) What library from Square is widely used in Android to perform HTTP network calls easily?
Show Answer
Explanation
90) Which popular image loading library is natively written in Kotlin and built around Coroutines?
Show Answer
Explanation
91) From Android 6.0 (API level 23) onwards, how must sensitive permissions (e.g., Camera, Location) be handled?
Show Answer
Explanation
92) Which file controls deep link URL handling and internet permissions for an app?
Show Answer
Explanation
93) What is the permission protection level that requires explicit user confirmation via a prompt dialog?
Show Answer
Explanation
94) What is the maximum time an app can block the main UI thread before an ANR dialog is triggered?
Show Answer
Explanation
95) What specialized thread runner in Android handles updates to UI controls?
Show Answer
Explanation
96) Which tool helps detect memory leaks in Android applications?
Show Answer
Explanation
97) What component sends notification banners to the user outside of the normal app user interface?
Show Answer
Explanation
98) Starting from Android 8.0 (API level 26), what must be created before posting any user notification?
Show Answer
Explanation
99) Which simple lightweight UI component shows a quick pop-up message that automatically fades after a short delay?
Show Answer
Explanation
100) Which system component is responsible for keeping track of open applications and handling memory pressure by killing background processes?
No Comments