Based on the provided source material and the provided question paper, here are the answers
categorized by their weightage and section.
Q1) Attempt the following (Any 12) 12 Marks - 1 Mark Each
● a. Enlist methods of SQLite Database: Common methods include
openOrCreateDatabase(), insert(), update(), delete(), rawQuery(), execSQL(),
onCreate(), and onUpgrade().
● b. What is an AVD? An AVD (Android Virtual Device) is a configuration that defines the
characteristics of an Android phone or tablet that you simulate in the Android Emulator.\
● c. Enlist different kinds of layouts: The types include Constraint Layout, Linear
Layout, Relative Layout, Table Layout, Absolute Layout, and Frame Layout.
● d. What is an Android? Android is an open-source, Linux-based Operating System
designed for mobile devices like smartphones and tablet computers.
● e. Enlist different adapter views: Examples include ListView, GridView, and Spinner.
● f. List out different layers of android architecture: The five parts are Linux Kernel,
Native Libraries, Android Runtime, Application Framework, and Applications.
● g. Enlist types of Intent: The two types are Explicit Intent and Implicit Intent.
● h. Mention categories of Menus: There are three types: Options Menu, Context Menu,
and Popup Menu.
● i. List out any 4 Android versions: Four versions are Cupcake (1.5), Donut (1.6),
KitKat (4.4), and Lollipop (5.0).
● j. Mention any 4 attributes of Button: Attributes include android:id,
android:layout_width, android:layout_height, and android:text.
● k. Write the purpose of android:layout_width: This attribute specifies the width of the
view or layout on the screen.
● l. Mention any 4 views used in Android: Common views are TextView, EditText,
Button, and CheckBox.
● m. Mention types of android orientation: The two orientations are Vertical and
Horizontal.
● n. What is SDK? The Android SDK (Software Development Kit) is a collection of
libraries and tools essential for developing Android applications.
Q2) Attempt the following (Any 4) 16 Marks - 4 Marks Each
1. a. Write any five features of android:Beautiful UI: Provides a customizable and
intuitive user interface.
2. Storage: Uses SQLite for data storage.
3. Connectivity: Supports Bluetooth, Wi-Fi, LTE, and NFC.
4. Multi-tasking: Allows users to jump between tasks and run apps simultaneously.
5. Multi-Language: Supports single and bi-directional text.
● b. What is Toggle button? How to create it? Explain with example: A ToggleButton
is used to display the checked/unchecked (on/off) state of a button, often used for
settings like Wi-Fi or Bluetooth. It is created in XML using the tag, utilizing
android:textOn and android:textOff to define labels for its states. Example: .
● c. How to create database in SQLite? Explain with example: A database can be
created by calling openOrCreateDatabase() or by extending the SQLiteOpenHelper
class. The onCreate() method of the helper class is called the first time the database is
created, where tables are defined using execSQL(). Example: SQLiteDatabase db =
openOrCreateDatabase("StudentDB", MODE_PRIVATE, null);.
● d. Explain list view using adapter with the help of example: A ListView displays a
scrollable list of items. An Adapter acts as a bridge, pulling data from a source (like an
array) and inserting it into the ListView. Example: In Java, you create an ArrayAdapter
and bind it to the list using [Link](adapter);.
● e. Create a simple application which read a number from the user and display
factorial value in another activity: This requires using an Intent to navigate between
activities. The user enters a number in an EditText in the first activity; a Button click
triggers an Explicit Intent that passes the value using putExtra(). The second activity
retrieves the value, calculates the factorial via a loop, and sets the result in a TextView.
Q3) Attempt the following (Any 4) 16 Marks - 4 Marks Each
1. a. Explain any four layouts with example:LinearLayout: Aligns children in a single
horizontal or vertical direction.
2. RelativeLayout: Positions child views relative to sibling elements or the parent.
3. TableLayout: Groups views into rows and columns using .
4. FrameLayout: Blocks out an area on the screen to display a single item.
● b. What is the use of Toast? Explain with example: A Toast provides brief feedback
about an operation in a small popup that disappears after a timeout without blocking
user interaction. Example: [Link](getApplicationContext(), "Success!",
Toast.LENGTH_SHORT).show();.
● c. With the help of example explain spinner: A Spinner is a drop-down list that allows
users to select one value from a set. It uses an ArrayAdapter to bind data from a string
array to the UI. Selections are handled using the setOnItemSelectedListener.
● d. Create an android application that will change color of the college name on
click of button & change font size and color: This is achieved programmatically in
Java. Use findViewById() to locate the TextView and Button. Inside the button's
setOnClickListener, call [Link]([Link]); and [Link](30);
to update the appearance
1. e. Explain the following with example: 1) Radio button 2) Check box:RadioButton:
Used for selecting only one option from a set; they are typically used inside a
RadioGroup.
2. CheckBox: A two-state button used for multiple selectable options that are not mutually
exclusive. Use isChecked() to determine its state.
Q4) Attempt the following (Any 4) 16 Marks - 4 Marks Each
● a. What is an alert dialog? How to create it? Explain with example: An Alert Dialog
is a small window prompted to the user to make a decision or provide an alert without
leaving the current activity. It is created using the [Link] class. Example:
[Link] builder = new [Link](this); [Link]("Exit");
[Link]("Are you sure?"); [Link]();.
● b. Write a program to check weather given number is even or odd. Display result
using toast: The app reads the number from an EditText using getText().toString(). It
uses the modulus operator (% 2 == 0) to check for evenness. The result is then
displayed using [Link]().show().
● c. What is Menu? Explain types of Menus: Menus are UI components used to provide
a set of actions.
1. Options Menu: Primary actions for an activity (e.g., Settings).
2. Context Menu: Floating menu appearing on long-click of an element.
3. Popup Menu: Vertical list of items anchored to a specific view.
● **d. Create an Android App that creates a file [Link] in Internal Storage. On click of
Read button display the data in text View:**Note: The provided sources detail SQLite
database connectivity but do not contain specific coding examples or instructions for
Internal Storage file operations (such as openFileOutput).
1. e. Create Android Application for performing the following operation on the table
customer (id, name, address, phone):Insert: Use ContentValues to store keys
(column names) and values, then call [Link]("customer", null, values);.
2. Display details on toast: Use rawQuery("SELECT * FROM customer", null); to get a
Cursor, then use [Link]() to retrieve data and display it using
[Link]().