MAD Viva Questions Answers
MAD Viva Questions Answers
- What is Android? - Android is an open-source mobile operating system developed by Google for
touchscreen devices.
- What is the role of Dalvik Virtual Machine in Android? - Dalvik VM was used to run Android apps
before Android 5.0; it converts bytecode into native code for execution.
- What is an APK file? - APK (Android Package Kit) is the file format used to distribute and install
- Explain the Android application structure. - It includes the manifest file, Java source files, resource
- What is an Activity and its lifecycle? - An Activity is a single screen in an app. Lifecycle stages
- What are Intents and Intent Filters? - Intents are messaging objects used to request actions. Filters
- What are Broadcast Receivers? - Components that respond to system-wide broadcast messages
- What is the function of AndroidManifest.xml? - It declares app components, permissions, and other
configuration details.
- What are Resources and R.java? - Resources include images, strings, layouts. R.java is a
- What is an Android Virtual Device (AVD)? - AVD is an emulator configuration that mimics a real
Android device.
- How to launch and edit an emulator? - Use AVD Manager in Android Studio to create, launch, or
- What is the use of DDMS? - Dalvik Debug Monitor Server helps in debugging Android apps by
providing features like thread and heap info.
- What is the second app concept (activity switching)? - It refers to starting a new activity from one
- How do you pass data using intents? - Use putExtra() method to add data and
- What are form widgets and text fields? - UI elements like EditText, Button, Checkbox used for user
input.
- What is the difference between dp, dip, and sp? - dp and dip are density-independent pixels; sp is
- What are SharedPreferences in Android? - Key-value pairs storage for app settings or user
preferences.
- How to create a menu and submenu? - Define items in XML or code and use
- What is the difference between Explicit and Implicit Intents? - Explicit intents target a specific
- What is SQLite and why is it used in Android? - A lightweight embedded database used for storing
management.
- How do you read and update contacts using SQLite? - Use SQL queries with cursor and update
- What is the use of cursors in Android? - Cursors allow traversal over rows returned by a database
query.
- What is an Adapter in Android? - A bridge between UI components and data sources, e.g.,
ListView.
- Difference between ArrayAdapter and BaseAdapter - ArrayAdapter is simpler, used for single list
- How is ListView different from GridView? - ListView displays items in a single column; GridView in
a grid format.
- What is a Broadcast Receiver? - It listens for system-wide events (e.g., battery low, SMS
received).
- What is a Toast in Android? - A short popup message used for showing quick feedback to users.
- Explain the use of Threads in Android - Used to perform background tasks to avoid blocking the
main UI thread.
- What is AsyncTask and how does it work? - A class for background tasks, with methods like
- What is the difference between UI Thread and Worker Thread? - UI thread handles user