Oracle Java Mobile Edition 1 Mobile Application Developer Certified Professional Sample Questions:
1. Given:
HttpConnection conn
(HttpConnection) Connector.open("http://internalsite:8080/");
and
MIDlet-Permission-Opt is set to javax.microedition.io.Connector.http in the JAD file.
What is the result?
A) The application will install and execute with explicit user interaction.
B) The application will install and execute without explicit user interaction.
C) The application will install, but the application will not execute.
D) The application will not install in the untrusted domain.
2. Which three are true for ChoiceGroup? (Choose three.)
A) You can specify different fonts for each ChoiceGroup entry.
B) You can associate a Command object with a ChoiceGroup.
C) ChoiceGroup.size() returns the index value of the last entry in a ChoiceGroup.
D) When using images with a ChoiceGroup, all entries must specify an image.
E) Images specified for entries may be mutable or immutable.
F) When using Choice.EXCLUSIVE, there must always be an element selected.
3. Which arguments should be passed to Connector.open() and TextMessage.setAddress(), respectively, to initiate an SMS text message using a server connection?
A) sms://+18005551234 and sms://:1234
B) sms://:1234 and sms://+18005551234
C) sms://:1234, with no need to call setAddress()
D) sms://+18005551234, with no need to call setAddress()
4. Which two are true when deleting a record store? (Choose two.)
A) The record store must be open prior to calling deleteRecordStore().
B) The record store must be closed prior to calling deleteRecordStore().
C) For any registered listener of the record store, recordDeleted() will be called.
D) If the record store is open, an exception will be thrown.
5. Which two errors are available in CLDC? (Choose two.)
A) java.lang.UnknownError
B) java.lang.VirtualMachineError
C) java.lang.OutOfMemoryError
D) java.lang.StackOverflowError
Solutions:
Question # 1 Answer: A | Question # 2 Answer: B,E,F | Question # 3 Answer: B | Question # 4 Answer: B,D | Question # 5 Answer: B,C |