Android Kotline Objective Questions and Answers
Android Kotline Objective Questions and Answers
Here are some Android Studio multiple-choice questions and answers to help you prepare:
Basic Concepts:
1. What is the primary language used for Android app development?
o a) Java
o b) Kotlin
o c) C++
o d) Python
Answer: b)
2. What is the role of the AndroidManifest.xml file?
o a) Defines the app's user interface layout
o b) Contains the app's source code
o c) Declares the app's components and permissions
o d) Stores the app's resources
Answer: c)
3. What is the purpose of the Android SDK?
o a) To develop iOS apps
o b) To provide tools and libraries for Android app development
o c) To compile and run Java programs
o d) To create web applications
Answer: b)
4. What is the core component of an Android app that provides a visual interface?
o a) Service
o b) Activity
o c) Broadcast Receiver
o d) Content Provider
Answer: b)
5. What is the purpose of the Gradle build system in Android Studio?
o a) To manage app dependencies and build process
o b) To debug app code
o c) To design app layouts
o d) To test app performance
Answer: a)
Intermediate Concepts:
6. What is the difference between a Fragment and an Activity?
o a) Fragments are reusable UI components, while Activities are complete screens.
o b) Fragments are used for background tasks, while Activities are for user interaction.
o c) Fragments are for data storage, while Activities are for network operations.
o d) There is no significant difference between them.
Answer: a)
7. What is the role of the Intent class in Android?
o a) To define user interface layouts
o b) To manage background services
o c) To initiate actions and start activities or services
o d) To store and retrieve app data
Answer: c)
8. What is the purpose of the Android Virtual Device (AVD)?
o a) To emulate different Android devices and versions
o b) To debug app code
o c) To design app layouts
o d) To manage app permissions
Answer: a)
9. What is the difference between a static resource and a dynamic resource in Android?
o a) Static resources are changed at runtime, while dynamic resources are fixed.
o b) Static resources are defined in XML files, while dynamic resources are generated at
runtime.
o c) Static resources are loaded from the network, while dynamic resources are stored
locally.
o d) There is no significant difference between them.
Answer: b)
10. What is the role of the Resource Qualifier in Android?
a) To define the app's permissions
b) To specify different resource values for different device configurations
c) To manage background services
d) To initiate actions and start activities or services
Answer: b)