THE CATHOLIC UNIVERSITY OF EASTERN AFRICA
A. M. E. C. E. A P.O. Box 62157
00200 Nairobi - KENYA
MAIN EXAMINATION Telephone: 891601-6
Fax: 254-20-891084
MAY – JULY 2019 TRIMESTER
FACULTY OF SCIENCE
DEPARTMENT OF COMPUTER AND LIBRARY SCIENCE
SPECIAL / SUPLEMENTARY EXAMINATION
CMT 314: MOBILE PROGRAMMING
Date: JULY 2019 Duration: 2 Hours
INSTRUCTIONS: Answer Question ONE and any other TWO Questions
QUESTION ONE (30 Marks)
a) Describe the following terms;
i) Explicit intent (2 marks)
ii) List picker (2 marks)
iii) Toggle button (2 marks)
b) i) State FOUR key components of android architecture (4 marks)
ii) Describe FOUR main features available android workbench.
iii) Evaluate four merits of android runtime environment. (4 marks)
c) How many dialog boxes do support in android? Explain them. (4 marks)
d) Explain the scope of the android code as used below. (4marks)
public class MainActivity extends AppCompatActivity {
protected void onCreate(Bundle savedInstanceState) {
Cuea/ACD/EXM/MAY – JULY 2019 / COMPUTER / LIBRARY SCIENCE Page 1
ISO 9001:2008 Certified by the Kenya Bureau of Standards
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
e) Explain THREE types of notifications available in android (6 marks)
f) Give TWO roles of a content provider in android. (2 marks)
h) Discuss any FIVE different storages in android giving role of each(10 marks)
QUESTION TWO
a) Below is a simple android login module to authenticate usernames and their
corresponding password.
<TextView
android:id="@+id/texto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/listaVista"
android:layout_alignParentBottom="true"
android:layout_alignRight="@+id/listaVista"
android:text="firstname"/>
android:text="lastname"/>
<ListView
<ListView
android:id="@+id/listaVista"
i) Explain the role of the elements used from above. (4 marks)
ii) An IT class was evaluating the history of android software development. Discuss a
brief history of android software development. (4 marks)
b) Define the following terms.
i) DVM(2 marks)
ii) Emulator(2 marks)
iii) Toast draft(2 marks)
iv) ANR (2 marks)
c) How does android track the application on process? (4 marks)
QUESTION THREE
.a) Describe the following terms;
Cuea/ACD/EXM/MAY – JULY 2019 / COMPUTER / LIBRARY SCIENCE Page 2
ISO 9001:2008 Certified by the Kenya Bureau of Standards
i) Implicit intent (2 marks)
ii) Broadcast receiver (2 marks)
iii) Service (2 marks)
b) i)Discuss any FOURcommon exceptions available in android. (8 marks)
ii) Define Sticky Intent? Explain its role in android. (4 marks)
c) Highlight common tools that are placed in An Android SDK.(4 marks)
QUESTION FOUR
a) Explain the scope of intent filter of the coding used below. (4 marks)
<intent-filter>
<actionandroid:name="android.intent.action.MAIN"/>
<categoryandroid:name="android.intent.category.LAUNCHER"/>
</intent-filter>
ii) State and explain SIX folders are impotent in android project. (6 marks)
iii) The android students was evaluating container .Briefly state any FOUR
components available in android container. (4 marks)
iv) Discuss major security issues facing mobile technology today (6 marks)
QUESTION FIVE
a) Use the android coding below;
Intentintent=newIntent(this,MyTestActivity.class);
startActivity(intent);
i) Evaluate the role of content used above. (4 marks)
ii) A class was evaluate sub-activites.Describe how do you pass the data to
sub-activities android? (2 marks)
ii)Define application Widgets in android? Describe how it can be embedded
in other applications. (5 marks)
b) Android software is developed under different layers Describe Android
application Architecture used (5 marks)
Cuea/ACD/EXM/MAY – JULY 2019 / COMPUTER / LIBRARY SCIENCE Page 3
ISO 9001:2008 Certified by the Kenya Bureau of Standards
c) DiscussFOUR common features of android software. (4 marks)
*END*
Cuea/ACD/EXM/MAY – JULY 2019 / COMPUTER / LIBRARY SCIENCE Page 4
ISO 9001:2008 Certified by the Kenya Bureau of Standards