Mad Q.B PTT-1

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

MAD Q.

Q.1 Attempt Any FOUR. 08 Marks

1) What Is Android?
Ans:
• Android is a mobile operating system developed by Google, based on the Linux kernel
and designed primarily for touch screen mobile devices such as smart phones and
tablets.

• The Android is a powerful Operating System (OS) and it supports large number of
applications (apps) in smart phones. These applications are more comfortable and
advanced for the users.

• The hardware that supports android software is based on ARM architecture platform.

• The android is an open source operating system means that it is free and any one can
use it.

2) Explain OHA.
Ans: The OHA is the group that is in charge of the Android smartphones operating system. It
was created by Google. The Open Handset Alliance (OHA) is consortium of multiple
companies like Samsung, Sony, Intel and many more to provide services and deploy
handsets using android platform.
The Open Handset Alliance (OHA) is an association whose goal is to develop open standards
for mobile devices, promote innovation in mobile phones and provide a better experience for
consumers at a lower cost.

MAD Q.B SHAHID UDDIN SHAIKH


MAD Q.B

3) What Is SDK?
Ans:
The Android Software Development Kit (SDK) allows Developers to create applications for
the Android Platform. The Android SDK is the Most important software of android which is
installed.
Android SDK provides to test Android Applications, the API libraries, an emulator,
documentation, sample code, developer tools, and tutorials which helps us to build, test and
debug apps from Android.
The Android SDK includes the following: (Optional)
1. Required libraries
2. Debugger
3. An emulator
4. Relevant documentation
5. Sample source code
6. Tutorials for the Android OS

4) List Out Few Android Development Tools.


1. Android studio
2. IntelliJ IDEA
3. Eclipse IDE
4. Gamemaker studio
5. Visual Studio – Xamarin

MAD Q.B SHAHID UDDIN SHAIKH


MAD Q.B

5) Explain Linear Layout


Ans:
Linear layout is further divided into horizontal and vertical layout. It means it can arrange
views in a single column or in a single row. Here is the code of linear layout(vertical) that
includes a text view.

(Optional)
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >

<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
</LinearLayout>

MAD Q.B SHAHID UDDIN SHAIKH


MAD Q.B

Q.2 Attempt Any THREE. 12 Marks

1) Difference Between DVM And JVM.

DVM (Dalvik Virtual Machine) JVM (Java Virtual Machine)


It is based on Register based virtual machine It is Stack based virtual machine
architecture architecture

DVM supports the Android operating JVM supports multiple operating systems.
system only.

DVM has common constant pool JVM has different constant pool

The executable format of DVM is APK. The executable format of JVM is JAR.
DVM runs on low memory JVM runs on more memory
The .class byte codes are optimized to .odex It runs .class byte code directly
format before executing in DVM

MAD Q.B SHAHID UDDIN SHAIKH


MAD Q.B

2) What Is Fundamental Of UI

1. Views-
Views are the basic User Interface class for visual interface elements (commonly known as
controls or widgets). All User Interface controls, and the layout classes, are derived from
Views.

2. ViewGroups-
View Groups are extensions of the View class that can contain multiple child Views. By
extending the ViewGroup class, you can create compound controls that are made up of
interconnected child Views. The ViewGroup class is also extended to provide the layout
managers, such as LinearLayout, that help you compose User Interfaces.

3. Activities-
Activities represent the window or screen being displayed to the user. Activities are the
Android equivalent of a Form. To display a User Interface, you assign a View or layout to an
Activity. Android provides several common UI controls, widgets, and layout managers.

4. Fragments
• Fragments represents a portion of user interface in an Activity. Fragments, introduced
in Android 3.0 which uses API level 11 are used to encapsulate portions of our UI.
• This encapsulation makes fragments particularly useful when optimizing our UI
layouts for different screen sizes and creating reusable User Interface (UI) elements.
• Each Fragment includes its own User Interface (UI) layout and receives the related
input events but is tightly bound to the activity into which each must be embedded.
• Fragments are similar to UI view controller in iPhone development.

MAD Q.B SHAHID UDDIN SHAIKH


MAD Q.B

3) Explain Any 2 Layouts With Example.

1. Relative layout
Relative Layout enforces to display elements in relations to each other. You can specify that,
for instance, one UI element can be said to be placed on the left of another element, or on the
bottom of another etc. Each UI element can also be positioned according to the layout’s
borders (e.g. aligned to the right)
Example:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/RLayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</RelativeLayout>

2. Table layout
The Table Layout groups views into rows and columns.
Example:
<TableLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent"
android:layout_width="fill_parent" >

<TableRow>
<TextView android:text="User Name:" android:width ="120dp" />
<EditText android:id="@+id/txtUserName" android:width="200dp" />
</TableRow>
</TableLayout>

MAD Q.B SHAHID UDDIN SHAIKH


MAD Q.B

4) Explain Android Architecture With Diagram.

MAD Q.B SHAHID UDDIN SHAIKH


MAD Q.B

5) Different Android Versions.


Ans:
1. Android 1.0
2. Android 1.1:
3. Android 1.5: Cupcake
4. Android 1.6: Donut
5. Android 2.0: Éclair
6. Android 2.2: Froyo
7. Android 2.3: Gingerbread
8. Android 3.0: Honeycomb
9. Android 4.0: Ice Cream Sandwich
10.Android 4.1: Jelly Bean
11.Android 4.4: KitKat
12.Android 5.0: Lollipop
13.Android 6.0: Marshmallow
14.Android 7.0: Nougat
15.Android 8.0: Oreo
16.Android 9: Pie
17.Android 10: Android Q

MAD Q.B SHAHID UDDIN SHAIKH


MAD Q.B

6) Explain Feature Of Android Minimum 5

1. Storage:
SQLite, a lightweight relational database, is used for data storage purposes.

2. Multitasking:
Multitasking of application, with unique handling of memory allocation, will be existing.

3. Web Browser:
The web browser available in Android OS is based on the open-source Webkit layout engine,
attached with Chrome's V8 JavaScript engine. The browser scores 100/100 on top of the
Acid3 test on Android 4.0. 4

4. Wi-Fi Direct:
A technology that lets apps discover and pair directly, over a high-bandwidth peer- to-
peer connection.

MAD Q.B SHAHID UDDIN SHAIKH

You might also like