MURANG’A UNIVERSITY OF TECHNOLOGY
SCHOOL OF COMPUTING AND INFORMATION
TECHNOLOGY
DEPARTMENT OF INFORMATION TECHNOLOGY
2023/2024 ACADEMIC YEAR
THIRD YEAR FIRST SEMESTER EXAMINATION
SIT 302: MOBILE APPLICATION DEVELOPMENT
DURATION: 2 HOURS
INSTRUCTIONS TO CANDIDATES:
1. Answer question one and any other two questions.
2. Mobile phones are not allowed in the examination room.
3. You are not allowed to write on this examination question paper.
1
SECTION A: 30 MARKS (Answer all questions in this section)
Question One
a) Mobile application development may be implemented in one of three approaches.
Describe the circumstances under which each of these approaches may be suitable for use
over the other approaches. (6 marks)
b) With reference to mobile applications, describe WAP and state its main purpose.
(4 marks)
c) Describe four types of mobile application testing. (4 marks)
d) Analyze the following line of code and offer an explanation of its effect when it gets
executed. (4 marks)
Intent = newIntent (FirstActivity.this, SecondActivity.Class);
e) Explain the role of the Android virtual Device (AVD) in the application development
process and describe how a developer creates and configures AVD for testing his/her
application. (6 marks)
f) The image labelled figure 1 shows an android device screen display upon execution of a
MainActivity.kt code file. Analyze the displayed element and write the MainActivity.kt
code that generated it. (6 marks)
SECTION B: 40 MARKS (Answer any two questions in this section)
Question Two
a) With the aid of labeled illustrative diagram, describe the lifecycle of an android activity
and highlight the role of the various methods that gets involved during the lifecycle.
(10 marks)
b) Write program code statements that leads to the invoking of each of the four dialog boxes
supported by Android. (10 marks)
Question Three
a) Explain the importance of XML-based layouts in mobile application. (4 marks)
b) With aid of illustrative diagram, describe the core Android File System architecture.
(6 marks)
c) You are developing an Android App for a small retail store. The app should allow users
to input the prices of selected items, calculate the total costs, and display the change to the
user. Write an Android program in Java or KOTRIN that accomplishes this task.
(10 marks)
2
Question Four
i. Explain the role of Android Gradel build system in building, compiling and managing
dependencies in an Android project. (10 marks)
ii. Describe the functional mechanism of the Android’s permission system. (4 marks)
iii. Elaborate how a developer requests and handles permissions in his/her Android-based
software applications. (6 marks)