310-110 Sun Certified Mobile Application Developer for J2ME Set 8

Which three are basic interface types addressed by the Generic Connection Framework? (Choose

three.)

A. circuit-oriented mechanism

B. basic serial input connection

C. location-oriented mechanism

D. basic serial output connection

E. telephony-oriented mechanism


Options are :

  • C,B,D
  • A,B,E
  • A,B,D
  • A,C,D

Answer : A,B,D

Which is true when using multiple threads to access a record store?



Options are :

  • You must lock a record store prior to access.
  • The implementation coordinates access, ensuring that record stores will NOT be corrupted.
  • You must coordinate access to a record store to prevent data corruption.
  • You CANNOT access a record store with multiple threads.

Answer : You must coordinate access to a record store to prevent data corruption.

310-110 Sun Certified Mobile Application Developer for J2ME Set 9

Which two specifications are mandatory in JTWI 1.0? (Choose two.)

A. MIDP 2.0

B. WMA 1.0

C. WMA 1.1

D. MMAPI 1.1

E. Location API


Options are :

  • A,D
  • A,E
  • E,C
  • A,C

Answer : A,C

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?



Options are :

  • The application will install and execute without explicit user interaction.
  • The application will not install in the untrusted domain.
  • The application will install and execute with explicit user interaction.
  • The application will install, but the application will not execute.

Answer : The application will install and execute with explicit user interaction.

Which two are true about record stores? (Choose two.)

A. Record store names are case sensitive.

B. The API does NOT provide locking operations for record stores.

C. A MIDlet CANNOT access a given record store using multiple simultaneous threads.

D. MIDlet suites that contain shared record stores are identified by using attributes from that

suite's JAR file.

E. If two MIDlet suites each have a record store with the same name, then those suites CANNOT

share those identically named record stores.


Options are :

  • A,E
  • C,B
  • A,D
  • A,B

Answer : A,B

Sun 310-110 Certified Mobile Application Developer for Exam Set 1

A JTWI application sends a text message using the code:

message.setPayloadText("hello world!");

conn.send(message);

What exception will this code throw if a timeout occurs while trying to send the message?



Options are :

  • java.io.InterruptedIOException
  • java.io.EOFException
  • java.lang.SecurityException
  • java.lang.NullPointerException

Answer : java.io.InterruptedIOException

The binding of networking protocols to a MIDlet at runtime can be compared to a type of

relationship. Which relationship most closely matches the binding?



Options are :

  • specification and implementation
  • mark and sweep
  • application and device drivers
  • caller and callee

Answer : application and device drivers

Which two methods are available in both the low-level and high-level APIs? (Choose two.)

A. isShown()

B. getTitle()

C. getLayout()

D. setFullScreenMode()


Options are :

  • A,D
  • A,B
  • C,B
  • A,C

Answer : A,B

Sun 310-110 Certified Mobile Application Developer for Exam Set 2

A game running on a J2ME device supporting MMAPI needs to play tones in the background of

the game. It intermittently needs to play sounds of explosions.

The code has created two Player objects: one for tones and one for WAV audio.

How does the developer know if both audio streams can be heard simultaneously?



Options are :

  • Playing audio streams simultaneously is NOT possible with any MMAPI implementation.
  • Playing audio streams simultaneously is only a request. The device determines whether to do so.
  • The developer knows playing audio streams simultaneously is supported because two Player objects have been created.
  • The developer can query the system using System.getProperty("supports.mixing");.

Answer : The developer can query the system using System.getProperty("supports.mixing");.

When using X.509 PKI, where must a MIDlet suite's security certificates be placed?



Options are :

  • in a user-defined subclass of SecurityInfo in the JAR's META-INF directory
  • inlined in the JAR manifest, using a base64 encoding
  • None
  • in .cer files in the JAR's META-INF directory
  • inlined in the JAD, using a base64 encoding

Answer : inlined in the JAD, using a base64 encoding

Which two guarantee a wireless message will be removed from the incoming message buffer by

the Application Management Software? (Choose two.)

A. The incoming message buffer is full.

B. The application has processed the incoming message.

C. The user denies permission to execute the application.

D. The message does NOT pass the filter defined in the connection URL.


Options are :

  • B,D
  • A,D
  • B,A
  • C,D

Answer : B,D

Sun 310-110 Certified Mobile Application Developer for Exam Set 3

How does a TiledLayer determine the sequence of frames in animated tiles?



Options are :

  • NONE
  • They CANNOT be set. Animation is possible only with a Sprite.
  • The tile to be displayed must be set during each frame of the animation.
  • The sequence of frames is obtained from an animated Sprite.
  • The sequence of frames is obtained from the location in the source image.

Answer : The tile to be displayed must be set during each frame of the animation.

What is the result if a call to serviceRepaints() triggers a separate thread to invoke paint()?



Options are :

  • The system may deadlock if the caller to serviceRepaints() holds a lock that is also needed by paint().
  • A deadlock always occurs.
  • MIDP is thread-safe. There will never be a deadlock.
  • An exception is thrown at runtime.

Answer : The system may deadlock if the caller to serviceRepaints() holds a lock that is also needed by paint().

Given a class named MyCanvas, which three CANNOT be used if MyCanvas is a direct subclass

of Canvas? (Choose three.)

A. flushGraphics();

B. isDoubleBuffered();

C. Sprite s = new Sprite(anImage, 20,20);

D. gameAction = getGameAction(keyCode) { }


Options are :

  • C,A
  • C,F
  • C,D
  • E,D

Answer : C,D

A JTWI device has a working socket implementation. A MIDlet requests permission to use socket

connections on this device using the attribute MIDlet-Permissions-Opt, but is denied permission.

Given:

20. public void connect() {

21. try {

22. String addr = "socket://host.com:79";

23. SocketConnection sc;

24. sc = (SocketConnection) Connector.open(addr);

25. sc.setSocketOption(SocketConnection.LINGER, 5);

26. InputStream is = sc.openInputStream();

27. OutputStream os = sc.openOutputStream();

28. os.write("\\r\\n".getBytes());

29. int ch = is.read();

30. // ...

35. } catch (IOException ioe) {

36. // ...

40. }

41. }

Which is true assuming that the argument to Connector.open() points to a valid destination, and

the device has resources to create new socket connections?



Options are :

  • If connect() executes, a ConnectionNotFoundException is thrown at runtime at line 24.
  • If connect() executes, a SecurityException is thrown at runtime at line 28.
  • If connect() executes, a SecurityException is thrown at runtime at line 24.
  • The device disallows the MIDlet to be installed.
  • If connect() executes, a SecurityException is thrown at runtime at line 26.

Answer : If connect() executes, a SecurityException is thrown at runtime at line 24.

Which three are basic interface types addressed by the Generic Connection Framework? (Choose

three.)

A. circuit-oriented mechanism

B. basic serial input connection

C. location-oriented mechanism

D. basic serial output connection

E. telephony-oriented mechanism


Options are :

  • A,B,D
  • A,B,E
  • A,B,C
  • C,B,D

Answer : A,B,D

Sun 310-110 Certified Mobile Application Developer for Exam Set 4

Which two clarifications does the JTWI specification make regarding how devices implement the

Mobile Media API? (Choose two.)

A. A JTWI device must support MIDI file playback.

B. A JTWI device must support MP3 file playback.

C. A JTWI device must support WAV file playback.

D. A JTWI device must support HTTP for media file download of all supported media formats.

E. A JTWI device must support Real Time Streaming Protocol (RTSP) for media file download of

all supported media formats.


Options are :

  • A,B
  • A,C
  • A,D
  • B,D

Answer : A,D

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions