BIT3209  MOBILE PROGRAMMING.

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

QUESTION ONE (Compulsory)
(a). Briefly describe each of the following components of a mobile application
(i). Mobile platform (2 Marks)
(ii) Activity (2 Marks)
(iii) Intent (2 Marks)
(b) Describe the three factors to be considered when developing a mobile application (3 Marks)
(c) State and explain five states of an activity during activity life cycle. (5 Marks)
(d) State and explain any four state transition methods that are invoked during activity life cycle
(4 Marks)
(e) Briefly explain two advantages of using android as platform for developing mobile applications
(2 Marks)
(f) Describe two differences and two similarities of SMS applications and USSD applications in the
context of mobile programming. (4 Marks)
(g) What is XML? (1 Mark)
(h) Describe two differences between HTML and XML (2 Marks)
(i) What is an XML attribute?. Write an XML code to illustrate its usage (2 Marks)
(j) What is XML Element? (1 Mark)
QUESTION TWO
(a) Describe the meaning of the term declarative design method in the context of mobile
programming (2 Marks)
(b) Describe three types of XML tags as used in mobile programming. Write a sample XML code
snippet for each type (6 Marks)
(c) Describe five basic rules while writing XML (5 Marks)
(d) Describe the purpose of broadcast receiver in android applications (2 Marks)
(e) Write XML code for defining the following user interface (5 Marks)


QUESTION THREE
(a)Explain the purpose of the following terms in the context mobile programming applications
(6 Marks)
(i) Spinner
(ii) Adapter object
(iii) Dalvik virtual machine
(b) Explain the following XML statements as used in mobile programming (5 Marks)


(c) Briefly explain the following lines of code in string.xml file (5 Marks)


>
(d) Describe the meaning of the following XML code as used in android programming (4 Marks)


QUESTION FOUR
(a) Describe the purpose of the following directories in the context of android applications (8 Marks)
(i) Res/
(ii) Layout/
(iii) bin/
(iv) values/
(b) Briefly explain the following terms. Give one example for each case (4 Marks)
(i) View
(ii) ViewGroup.
(c) Write XML code for defining the following user interface (6 Marks)


(d) Briefly explain the difference between Linear layout and relative layout in the context of mobile
programming (2 Marks)
QUESTION FIVE
(a) Briefly explain the purpose of R.java file in android applications (2 Marks)
(b) Briefly describe three functions of a manifest XML file in mobile programming (3 Marks)
(c) Describe the meaning of the term ‘procedural design’ method in the context of mobile
programming
(2 Marks)
(d) Briefly explain the purpose of the following event handling concepts
(i) onClickListener (1 Mark)
(ii) Event handler (1 Mark)
(iii) Event registration (1 Mark)
(e) Write XML code that defines the following User interface layout


(f) Write a java code that can enable OK button in the above figure to print a message when pressed
by the user (5 Marks)
(g) Briefly explain the following concepts as used in mobile programming (2 Marks)
(i) Activity stack
(ii) URI
(h) Briefly explain the following lines of java code as used in mobile programming (3 Marks)
EditText edtDepartment;
edtDepartment = (EditText) findViewById(R.id.edtdpt);
String Deptnam = edtDepartment.getText().toString();

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

Written by