| Candidate Name | ___________________________________________ |
| Registration No. | ___________________________________________ |
| Assessment Date | ___________________________________________ |
| Duration | 3 hours |
| Total Marks | 100 |
| Location of Assessment | ICT Lab, Block C |
| Examination Officer | Ms. A. Mwangi |
| Assessor / Trainer | Jane Kamau |
Reasonable adjustments: Candidates with special needs may request reasonable adjustments by notifying the Examination Officer at least 24 hours before the assessment.
Feedback: Written feedback (Competent / Not Yet Competent) will be issued to every candidate within seven (7) working days.
INSTRUCTIONS TO CANDIDATES
- This paper has TWO sections A and B. Attempt questions in each section as per the instructions given.
- You are provided with a separate answer booklet.
- Marks for each question are indicated in the brackets.
- Do not write on the question paper.
SECTION A: 40 MARKS
Attempt ALL questions in this section.
1.Define each of the following mobile development approaches as used in Mobile programming.
i.Native;(2 Marks)
ii.Hybrid;(2 Marks)
iii.Progressive web.(2 Marks)
2.Briefly describe THREE categories of mobile applications.(3 Marks)
3.State TWO limitations associated with mobile devices.(2 Marks)
4.Describe each of the following resource types used in Android development.
i.anim/(2 Marks)
ii.drawable/(2 Marks)
iii.values/(2 Marks)
5.Give TWO reasons why mobile application programmers are encouraged to use mobile development frameworks.(2 Marks)
6.State THREE interface styles applicable to mobile app development.(3 Marks)
7.Discuss THREE ways that the user experience can be enhanced in a mobile application.(3 Marks)
8.Distinguish between data replication and data synchronization.(4 Marks)
9.Giving examples, differentiate between views and view groups in mobile programming.(4 Marks)
10.Write an XML snippet to create a login page with the following elements: username field, password field, submit button, cancel button.(4 Marks)
11.Explain THREE functions of the AndroidManifest.xml file.(3 Marks)
SECTION B: 60 MARKS
Attempt any THREE questions in this section.
12.a) With the help of a well-labelled diagram, describe the life cycle of an activity in Android programming.(6 Marks)
b) Describe the procedure used to install an Android application on a physical mobile device.(4 Marks)
c) Describe TWO key components of the Android operating system.(4 Marks)
d) Describe the function of: (i) R.layout.activity_main, (ii) onCreate() method.(4 Marks)
e) State TWO advantages of Android applications.(2 Marks)
13.a) (i) Briefly describe the role of TWO selection controls a programmer may use to implement the UI of a mobile e-learning application.(4 Marks)
(ii) Write a sample code to implement the two selection controls named above.(4 Marks)
b) Describe THREE layout class interface controls programmers can use.(6 Marks)
c) Write an XML code (relative layout) to implement an interface that adds two numbers — must include at least two TextFields with input_type attribute and a SUM button.(6 Marks)
14.a) Re-write the following XML code eliminating the errors:(3 Marks)
<?xml version="1.0" encoding="utf-8"?>
<resources
< name="opaque_red">#f00
<string name="greetings">Hi There!</string>
</ >
b) Write code extracts showing how (i) Services, (ii) Content Providers, (iii) Broadcast Receivers are inherited from their main classes.(6 Marks)
c) Explain the difference between procedural and object-oriented programming design methods.(4 Marks)
d) Giving an example, briefly describe the strings.xml file.(3 Marks)
e) Describe TWO applications of Intent in mobile programming.(4 Marks)
15.a) Describe the function of each of the following XML lines:(6 Marks)
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
b) Describe TWO characteristics of a Fragment in Android.(4 Marks)
c) Using the grading table below (A: above 80, B: 60–80, C: 50–60, D: 45–50, E: 25–45, F: below 25):
(i) Design a simple interface allowing a student to enter marks and receive a corresponding grade (use LinearLayout).(5 Marks)
(ii) Write a method that determines the grade based on the score (use if selection).(5 Marks)
| Examiner / Assessor | Jane Kamau |
| Internal Verifier | ___________________________________________ |
| Examination Officer | Ms. A. Mwangi |
| Duration | 3 hours |
| Total Marks | 100 |
This marking scheme is a guide. Award marks according to the breakdown shown beside each question.
SECTION A — Marking points
1. Define each of the following mobile development approaches (6 Marks total)
i. Native — apps written in the platform's native SDK (Swift/Kotlin), compiled to device binaries, full device-API access. (2 Mks: 1 for definition, 1 for example/feature)
ii. Hybrid — apps built with web technologies (HTML/CSS/JS) wrapped in a native container (e.g. Cordova/Ionic). (2 Mks)
iii. Progressive Web App — websites that behave like apps via service workers, offline cache and installable manifest. (2 Mks)
2. Three categories of mobile applications (3 Marks)
Any THREE × 1 Mk: Native, Hybrid, Web/PWA, Utility, Gaming, Productivity, Social, Enterprise. Mark = correct category + one-line distinguishing feature.
3. Two limitations of mobile devices (2 Marks)
Any TWO × 1 Mk: limited screen real estate · limited battery · limited processing power · fragmented OS versions · limited storage · network reliance · input-method constraints.
4. Android resource folders (6 Marks)
i. anim/ — XML animation definitions (rotate, alpha, scale, translate). (2 Mks)
ii. drawable/ — bitmaps and XML-defined shapes/selectors used by views. (2 Mks)
iii. values/ — strings.xml, colors.xml, styles.xml etc — reusable constants. (2 Mks)
5. Two reasons to use a mobile framework (2 Marks)
Any TWO × 1 Mk: faster development, cross-platform reach, pre-built components, established patterns, community support, easier maintenance.
SECTION B — Marking points
12 (a). Activity life-cycle (6 Marks)
Diagram: onCreate → onStart → onResume → (running) → onPause → onStop → onRestart / onDestroy. Award 1 Mk per correctly placed state (max 6), with arrows.
12 (b). Install APK on physical device (4 Marks)
1 Mk each: enable Developer Options + USB Debugging · connect via USB · run adb install app.apk (or build & deploy from IDE) · authorise the host computer on the device.
12 (c). Two key Android OS components (4 Marks)
Any TWO × 2 Mks (name + 1-line role): Linux kernel, HAL, ART runtime, native C/C++ libraries, Java API framework, system apps.
…full marking scheme continues for questions 13, 14, 15…
SECTION B: 60 MARKS · PREVIEW
Attempt any THREE questions in this section. (Trial shows ONE sample below.)
12.a) With the help of a well-labelled diagram, describe the life cycle of an activity in Android programming.(6 Marks)
b) Describe the procedure used to install an Android application on a physical mobile device.(4 Marks)
c) Describe TWO key components of the Android operating system.(4 Marks)
… (2 more sub-parts hidden in preview)
⎯⎯⎯ PREVIEW ENDS HERE ⎯⎯⎯
Pay KES 150 via M-Pesa STK push to unlock the full paper, all variants, marking schemes & observation checklists.
Click a tab above to switch between the four document types in a paid pack — College-branded, moderation-ready.