BIT 3103 MOBILE PROGRAMMING KCA Past Paper

UNIVERSITY EXAMINATIONS: 2012/2013
EXAMINATION FOR THE BACHELOR OF SCIENCE IN
INFORMATION TECHNOLOGY
BIT 3103 MOBILE PROGRAMMING
DATE: AUGUST, 2013 TIME: 2 HOURS
INSTRUCTIONS: Answer Question ONE and Any Other TWO Questions

QUESTION ONE
a) Differentiate between the J2ME and J2SE (4 marks)
b) Name three devices targeted by J2ME (3 marks)
c) Jush developed application using J2ME and loaded on Motorola Phone. The
application did not run or install. Explain why (3 marks)
d) Discuss any 5 components of a flexible screen stating the syntax for each one of
them. (5 marks)
e) Complete the following devices/J2ME versions table. The first one has been done for
you


ii. PDA and Communicators
iii. Phones and Pagers
iv. Embedded Devices
v. SmartCards
(4 marks)
f) Enlist and briefly discuss the Four functions of a Midlet(4 marks)
g) Draw a schematic diagram with annotations for a MIDlet lifecycle(2 marks)
h) Create a midlet called MyMidlet that computes and display the area and perimeter
of a rectangle. The midlet uses a class that has members (length and width and
methods area and perimeter). (HINT. Create a class first before the interface
elements) (5 marks)
QUESTION TWO (20 MARKS)
a) Christine, a smart Java Software Developer did an MIDP midlet application using
AWT. When trying to execute the application, the application did not execute or even
attempt to run. It was displaying run… but displaying a blank screen.
Give 2 reasons for this (4 marks)
b) MIDP generally belong to two categories. Discuss them (4 marks)
c) Specify what functions of the display does the following
(i) Access display in startApp() method
(ii) Number of colors supported
(iii) Color or grayscale device
(iv) Reference to what is being shown currently. (4 marks)
d) To create a command, you specify the following name, type and priority
(i) Explain the relevance of those terms. (3 marks)
(ii) Discuss the 5 types of commands and how you specify such. (5 marks)
QUESTION THREE
Carefully study the following application. Write code that will generate it and when the
user selects the ok button, the application display a message box where the user can write
a message. The current display (message) should have two command buttons, Back and
Send. Send sends the message and Back takes the user back to the menu . (20 marks)


QUESTION FOUR
a) FileConnection interface has five methods. Name and describe them. (5 marks)
b) When J2ME developers want and a MIDlet to respond to users selection of a
command, he is required to implement an interface.
i) Name this interface and describe the method/s that are implementable. (4 marks)
ii) Design an application that demonstrates the usage of the Recordstore.
(11 marks)
QUESTION FIVE
a) Give and briefly discuss 5 perspective of mobile e-commerce. (10 marks)
b) Outline briefly 4 types of e-commerce. (4 marks)
c) List the unique benefits of m-business. (3 marks)
d) List 3 drivers of m-commerce. (3 marks)

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

Written by