BIT3209 BBIT311- MOBILE PROGRAMMING.

UNIVERSITY EXAMINATIONS: 2017/2018
EXAMINATION FOR THE DEGREE OF BACHELOR OF SCIENCE IN
INFORMATION TECHNOLOGY /BACHELOR OF BUSINESS IN
INFORMATION TECHNOLOGY
BIT 3209/BBIT 311: MOBILE PROGRAMMING
FULL TIME/PART TIME/DISTANCE LEARNING
DATE: AUGUST, 2018 TIME: 2 HOURS
INSTRUCTIONS: Answer Question One & ANY OTHER TWO questions.

QUESTION ONE
(a) Briefly explain the meaning of the following mobile programming concepts. Write an XML code to
illustrate how each concept is implemented (6 Marks)
(i) XMLl namespace
(ii) XML Attribute
(iii) XML Element
(b) Describe the importance of the following event handling concepts in the context of android
applications development. Write a code snippet to illustrate how each concept is implemented
(6 Marks)
(i) Event handler
(ii) Event listener
(iii) Event Registration
(c) Describe two differences and similarities between short messaging service (SMS) and Unstructured
Supplementary Service Data (USSDs) applications (4 Marks)
(d) Write an XML code that defines the following mobile user interface (5 Marks)


(e) Describe two attributes of Intent in the context of android applications development and write Java
code snippet to illustrate the implementation of the two attributes (4 Marks)
(f) Describe the importance an Activity as used in mobile programming. Write a java code that illustrates
how an Activity can be declared (5 Marks)
QUESTION TWO
(a) Describe two differences between native and mobile web applications. Give one example for each
type of applications (4 Marks)
(b) Write an XML code for defining the following mobile user interface (6 Marks)


(c) Explain four functions of android manifest file as used in mobile programming (4 Marks)
(d) Describe five syntax rules of extensible mark up language (XML) in the context of mobile
programming (5 Marks)
(e) Define the term mobile platform as used in mobile programming (1 Mark)
QUESTION THREE
(a) Write an XML code for defining the following user interface of a mobile application (6 Marks)


(d) Describe the purpose of oncreate() method as used in android applications. Write a sample java code
that demonstrates its implementation (4 Marks)
(e) Briefly explain the difference between procedural and declarative design methods as used mobile
programming. Describe the programming language that is used to implement each method (4 Marks)
(g)Explain the purpose of the following input controls in the context of android platform. Write a sample
XML or Java code for defining each term (6 Marks)
(i) Spinner
(ii) Edit Text
QUESTION FOUR
(a)Android platform consists of three components. Describe each of these components (3 Marks)
(b) Describe the differences between views and view groups in the context of mobile programming. state
one example for each case (4 Marks)
(c) Briefly explain the term nesting of XML tags in the context of extensible mark up language (XML).
Write a sample XML code that demonstrates application of the term (4 Marks)

(d) Describe the purpose of res/ folder in the context of android applications (2 Marks)
(e) Describe five state transition methods in the context of activity life cycle. (5 Marks)
(f). Describe two advantages of developing android applications (2 Marks)
QUESTION FIVE
(a) f) Briefly explain the following XML lines code (3 Marks)
android:layout_width=”match_content”
android:layout_height=”wrap_content”
android:text=”register ”
(b) Write XML code for implementing the following user interface of a mobile application
(5 Marks)
(b) Briefly explain the meaning of the term Killable states in the context of mobile programming. Give
one example of a killable state (2 Marks)


(c) State and explain three types of mobile applications that can be developed. (3 Marks)
(a). Describe four limitations that are associated with use mobile devices for running applications
(4 Marks)
(b) State and explain any three layout classes that are used to hold and organize user interface controls of
a mobile application. (3 Marks)

(Visited 206 times, 1 visits today)
Share this:

Written by