You are on page 1of 7

GOVERNMENT POLYTECHNIC BHUJ

COMPUTER ENGINEERING DEPARTMENT


MID SEM PAPER SOLULTION (TERM - 182)

Course Code: 3360704

Course Name: Mobile computing and Application Development

CO No COURSE OUTCOME
CO1 Illustrate generations of mobile communication and GSM architecture
CO2 Summarize android application Structure
CO3 Execute operations on GUI objects like push button, text box, padding

Sr No Questions Marks Level CO


No
Q-1(a) Differentiate GSM and CDMA. 05 R CO1

Q-1(b) Explain different transmission mode in mobile communication. 05 R CO1

 Transmission mode refers to the mechanism of transferring of data


between two devices connected over a network.
 It is also called Communication Mode. These modes direct the

1/7
direction of flow of information.
 There are three types of transmission modes. They are:

1. Simplex Mode
2. Half duplex Mode
3. Full duplex Mode

Simplex

 In simplex type of transmission mode, data can be sent only in one


direction i.e. communication is unidirectional.
 We cannot send a message back to the sender

Half-duplex data transmission means that data can be transmitted in both


directions on a signal carrier, but not at the same time.

In full duplex system we can send data in both the directions as it is


bidirectional at the same time in other words, data can be sent in both
directions simultaneously.

Q-1(c) List out different component of GSM and Explain any two of them in 05 R/U CO1
2/7
detail.
Following are the component of GSM architecture
1. BSC
2. BTS
3. MS
4. MSC
5. HLR
6. VLR
7. AUV
8. EIR
9. OMC

VLR

 The VLR associated to each MSC is a dynamic database which


stores all important information needed for the MS users currently
in the LA that is associated to the MSC.

 If a new MS comes into an LA the VLR is responsible for, it copies


all relevant information for this user from the HLR.

 This hierarchy of VLR and HLR avoids frequent HLR updates and
long-distance signaling of user information.

Authentication centre (AuC):

 AuC has been defined to protect user identity and data transmission.
 The AuC contains the algorithms for authentication as well as the
keys for encryption and generates the values needed for user
authentication in the HLR.

Q-2(a) Explain Application framework from android architecture. 05 U CO2

The Application Framework layer provides many higher-level services to


applications in the form of Java classes.
Application developers are allowed to make use of these services in their
applications.
The application framework includes the following key services −
 Activity Manager − Controls all aspects of the application
lifecycle and activity stack.
 Content Providers − Allows applications to publish and share data
with other applications.
 Resource Manager − Provides access to non-code embedded
resources such as strings, color settings and user interface layouts.

3/7
 Notifications Manager − Allows applications to display alerts and
notifications to the user.
 View System − An extensible set of views used to create
application user interfaces.

Q-2(b) Explain DVM in detail. 05 U CO2

As we know the modern JVM is high performance and provides excellent


memory management. But it needs to be optimized for low-powered
handheld devices as well.

The Dalvik Virtual Machine (DVM) is an android virtual machine


optimized for mobile devices. It optimizes the virtual machine
for memory, battery life and performance.

Dalvik is a name of a town in Iceland. The Dalvik VM was written by Dan


Bornstein. The Dex compiler converts the class files into the .dex file that
run on the Dalvik VM. Multiple class files are converted into one dex file.

Let's see the compiling and packaging process from the source file:

The javac tool compiles the java source file into the class file.

The dx tool takes all the class files of your application and generates a
single .dex file. It is a platform-specific tool.

The Android Assets Packaging Tool (aapt) handles the packaging


process.
Q-2(c) List out Advantages and Disadvantages of Android. 05 R CO2

Advantages:
 Android Is More Customizable Can change almost anything.
 In Android, any new publication can be done easily and without any
review process
 Use a Different Messaging App for SMS
 Android Offers an Open Platform
 Easy access to the Android App Market
4/7
 Cost Effective
 Upcoming versions have a support to save RAW images
 Built in Beta Testing and staged rollout

Disadvantages:

 Usually you need more code on Java than Objective-C.


 Complex layouts and animations are harder to code in Android.
 Applications contains virus also present in Android Market
 A lot of “process” in the background that lead to the battery quickly
drains.
 Advertise , will always be ads on display, either the top or bottom
of the application.
 Low security and fake apps can be installed to steal your info from
unknown resources
 High device fragmentation

Q-3(a) List various widgets of android and explain any one. 05 R/U CO3

Following are list of GUI object in android

1. TextView.
2. EditText.
3. Button.
4. ImageButton.
5. ToggleButton.
6. CheckBox.
7. RadioButton
8. Spinner

ToggleButton

 ToggleButton is used to display checked and unchecked state of


a button.
 ToggleButton basically an off/on button with a light indicator
which indicate the current state of toggle button.

Push Button

 Button represents a push button.


 A Push buttons can be clicked, or pressed by the user to perform an
action.

5/7
Q-3 (b) Explain Activity lifecycle of android. 05 U CO3

General, activity lifecycle has seven callback methods:

1. onCreate()
2. onStart()
3. onResume()
4. onPause()
5. onStop()
6. onRestart()
7. onDestroy()

A program starts from a main() function in different programming


languages. Similarly, android initiates the program within an activity with a
call to onCreate() callback method. There is a sequence of callback
methods that starts up an activity and then tear down in different methods
shown in the above Activity life cycle diagram:

1. onCreate(): In this state, the activity is created.

2. onStart(): This callback method is called when the activity becomes


visible to the user.

3. onResume(): The activity is in the foreground and the user can interact
with it.

4. onPause(): Activity is partially obscured by another activity. Another


6/7
activity that’s in the foreground is semi-transparent.

5. onStop(): The activity is completely hidden and not visible to the user.

Q-3 (c) Write an android program which displays “INDIA” using toast (JAVA 05 A CO3
Code only).

1. public class MainActivity extends AppCompatActivity {


2.
3. @Override
4. protected void onCreate(Bundle savedInstanceState) {
5. super.onCreate(savedInstanceState);
6. setContentView(R.layout.activity_main);
7.
8. Toast.makeText(getApplicationContext(),"INDIA",Toast.LENG
TH_SHORT).show();
9. }
10. }

7/7

You might also like