PART A – 2 MARK QUESTIONS (1–12)
1) What is Android?
Android is an open-source, Linux-based mobile operating system developed by Google. It is
used for developing applications for smartphones, tablets, and other smart devices.
2) What is Manifest File?
[Link] is a configuration file that declares application components, permissions,
SDK version, and other essential app information. It is mandatory for every Android application.
3) What is a Content Provider?
A Content Provider is a component used to manage and share application data between
different applications using URIs. It is commonly used to access SQLite databases and share
contacts or media data.
4) What is an Intent?
An Intent is a messaging object used to request an action from another app component such as
starting an Activity, Service, or sending a Broadcast.
5) What is Drawable Folder in Android?
The drawable folder (res/drawable/) contains graphical resources such as images (PNG, JPG),
XML drawable files, icons, and shapes.
6) What is View and ViewGroup?
View is the basic UI element such as Button or TextView.
ViewGroup is a container that holds multiple views such as LinearLayout or RelativeLayout.
7) What is an Adapter in Android?
An Adapter acts as a bridge between a data source and UI components like ListView or
RecyclerView. It converts data into view items.
8) What is Fragment in Android?
Fragment is a reusable UI component inside an Activity. It has its own lifecycle and is used for
modular UI design.
9) How do you attach a listener to a menu item click?
By overriding the method:
onOptionsItemSelected(MenuItem item)
and checking the item ID to perform required action.
10) What is the use of <PreferenceScreen>?
<PreferenceScreen> is used to create a settings screen and acts as a container for
preference items.
11) What is ListPreference?
ListPreference displays a list of selectable options in a dialog and allows the user to choose one
value.
12) What is SharedPreferences?
SharedPreferences is used to store small amounts of persistent key-value data such as login
status or user settings.
PART B – 5 MARK QUESTIONS (13–20)
13) Advantages of Android
1. Open Source
2. Large Developer Community
3. Supports Multiple Devices
4. Multitasking Support
5. Rich UI Components
6. Easy App Distribution
7. Strong Google Services Integration
14) Structure of an Android Program
Main Components:
1. [Link] – Declares components and permissions
2. Java/Kotlin Source Files – Application logic
3. res Folder
○ layout – UI XML files
○ drawable – images
○ values – strings, colors
4. Gradle Scripts – Build configuration
5. Assets Folder – Raw files
Application flow: Manifest → Activity → Layout → Resources → APK.
15) Types of Intent
1. Explicit Intent
● Specifies exact component
● Used within same app
2. Implicit Intent
● Does not specify component
● System decides which app handles it
16) Android Resources and Types
Resources are external files used in an app.
Types:
● layout
● drawable
● values
● menu
● anim
● raw
Accessed using R class (e.g., [Link]).
17) Layouts Supported by Android
1. LinearLayout
2. RelativeLayout
3. ConstraintLayout
4. FrameLayout
5. TableLayout
18) Difference Between View and ViewGroup
View:
● Basic UI component
● Cannot contain child views
ViewGroup:
● Container for views
● Manages layout of child views
19) Dialog Boxes in Android
1. AlertDialog – Confirmation dialogs
2. ProgressDialog – Shows loading progress
3. DatePickerDialog – Select date
4. TimePickerDialog – Select time
5. Custom Dialog – User-defined dialog
20) Insert, Update, Delete in SQLite
Insert:
Use insert() method to add records.
Update:
Use update() method with condition.
Delete:
Use delete() method with condition.
SQLite is used for local database storage in Android applications.
PART C – 10 MARK QUESTIONS (21–22)
21) Fragment Lifecycle
Fragment lifecycle methods:
1. onAttach()
2. onCreate()
3. onCreateView()
4. onStart()
5. onResume()
6. onPause()
7. onStop()
8. onDestroyView()
9. onDestroy()
10.onDetach()
Lifecycle Flow:
onAttach
↓
onCreate
↓
onCreateView
↓
onStart
↓
onResume
↓
onPause
↓
onStop
↓
onDestroyView
↓
onDestroy
↓
onDetach
Fragments help in modular and reusable UI design.
22) Explain the common controls in Android (10 Marks)
Android provides various UI controls:
1. TextView
Displays text.
2. EditText
Allows user input.
3. Button
Clickable control to perform action.
4. ImageView
Displays images.
5. CheckBox
Allows multiple selections.
6. RadioButton
Single selection from group.
7. Spinner
Dropdown selection list.
8. ListView
Displays scrollable list.
9. RecyclerView
Advanced and efficient list view.
10. ProgressBar
Shows task progress.