|
Question 1.
Assume a particular JTWI phone supports server socket connections. A MID let running on the phone attempt to register connection using:
Push Registry. register connection (connection, millet, filter);
Assume connection, midlet, and filter are NOT null. The statement executed and thrown a
Connection Not Found Exception.
What causes the exception?
A. The specified MID let does NOT exist.
B. The syntax of connection is invalid.
C. The requested connection is already registered.
D. The phone does NOT support push connections using server sockets.
Answer: D
Question 2.
A MID let suite has the application descriptor fragment:
MID let-1: E-mail, email.png, com. example. Email MID let
The MID let suite has the necessary permissions to use the Push Registry.
What line does the application descriptor need to register the MID let suite for socket push connections on port 79?
A. MID let-Push-1: socket://: 79, E-mail, *
B. MID let-push-1: socket://: 79, MID let-1, *
C. MID let-Push-1: socket://: 79, Email MID let, *
D. MID let-Push-1: socket://: 79,com.example.EmailMID let, *
Answer: D
Question 3.
Assume a device supports data grams and a MID let has permission to use datagram connections.
Which two are true? (Choose two.)
A. Push registration can fail if another application has already reserved the connection on the
device.
B. Push registration can fall if the allowed sender filter specified is *, which poses a security risk
to the device.
C. Push registration can fail because the device does NOT support the use datagram by the
Push Registry.
D. Push registration can fail if there is a push registration conflict, but the user must be prompted
as to how to resolve the problem.
Answer: C
Question 4.
Given the push connection string:
MID let-Push-1: Socket://: 79, com. example. Sample Chat, 192.3? . ? . *
Which two addresses are allowed to push connection notification to the application?
(Choose two.)
A. 192.31.1.1
B. 192.3.1.101
C. 192.32.1.101
D. 192.31.101.1
E. 192.310.10.1
F. 192.310.101.1
Answer: A.C
Question 5.
What are benefits of the push Registry? (Choose two.)
A. It provides a way to restrict HTTP connection to well-known network addresses.
B. It provides a way for the AMS to automatically invoke a MID let at a specified time if it is not
already running.
C. It provides a way for an incoming connection to invoke a MID let that can handle the content
sent by the connection.
D. It provides a way for MID let suites running to the same device to discovery and communicate
with each other in a secure manner.
Answer: B, C
Question 6.
Which two are true about record store listeners? (Choose two.)
A. Listeners are notified if a store is deleted.
B. A record store can have only one registered listener.
C. When a record store is closed, listeners are removed.
D. To listen for all events, three listeners must be registered.
E. A record can have more than one registered listener.
Answer: C, E
Question 7.
Given:
30. public Boolean X (byte [] y) throws Illegal Argument Exception{
31. Byte Array Input Stream bais = new Byte Array Input Stream (arg);
32. Data Input Stream dis = new Data Input Stream(bais);
33. String type = null;
34. Try {type = dis.rea UTF();}
35. Catch (Exception e) {}
36. return (z)
37.}
Which substitutions for x, y and z in the code create a valid implementation of Record Filter that matches records whose type is NOT deleted?
A. X is match
Y is arg
Z is type. equals ("deleted")
B. X is match
Y is type
Z is !type. equals ("deleted")
C. X is matches
Y is arg
Z is type. equals ("deleted")
D. X is matches
Y isarg
Z is !type. equals ("deleted")
E. X is matches
Y is type
Z is type. equals ("deleted")
Answer: D
Question 8.
Due to possible performance consequence, the MIDP 2.0 specification urges caution types of record store enumerations.
Which is identified in the specification as having the greatest probability of resulting in poor response time?
A. using a filter
B. using a comparator
C. using a filter and a comparator together
D. setting the keep Updated argument to true
Answer: D
Question 9.
Given that is an object of type Javax.microedition.rms. Record Store and that record 1 exists in rs, and
21. String one = "store String";
22 String two = "a much longer String';
23. bytes []small= one.get Bytes();
24. bytes [] big = two.get Bytes();
25. rs.set Record(1,big,0,big,length);
26. rs.set Record(1,small,small,length);
What is the result?
A. Compilation fails.
B. An exception is thrown at runtime.
C. Record 1 contains "short String."
D. Record 1 contains "a much longer String."
E. Record 1 contains "short String r String."
Answer: C
Question 10.
Which two are true about deleting a record store? (Choose two.)
A. A record store can be deleted by any MID let that has access to it.
B. Record stores accessible across MID let suites can never be deleted.
C. Registered listeners will be notified when their record store is deleted.
D. Permission to delete a record store is independent of its authorization mode.
E. A record store can always be deleted if it is NOT open to any MID let in its suite.
F. Any attempt to delete a record store can throw an exception that must be caught.
Answer: D, F
Question 11.
Which creates a new record store of type Javax.microedition.rms. Record Store that can be shared between MID let suites?
A. open Record Store("cust", true, AUTH MODE_ ANY, false);
B. open Record Store("cust", false, AUTH MODE_ ANY, false);
C. open Record Store("cust", true, AUTH MODE_SHARED, false);
D. open Record Store("cust", false, AUTH MODE_ANY,false);
Answer: A
Question 12.
Which two are two? (Choose two.)
A. Paint () is never called for Game Canvas subclasses.
B. Synchronous painting to the device display is possible with Game Canvas.
C. Game Canvas always needs a separate thread to draw anything on the screen.
D. Canvas. Service Repaints () and Canvas. Call Serially () can be used created a contest frame-
rate animation loop.
Answer: B, D
Question 13.
Which two are true? (Choose two.)
A. Game Canvas provides an off-screen buffer.
B. Game Canvas extends Canvas and is NOT abstract.
C. Game Canvas can render only Sprite and Layer objects.
D. Game Canvas provides the ability to get the status of the physical keys of the device.
Answer: A, D
Question 14.
A mobile application developer wants to reduce memory use and improve the speed of a game using the MIDP 2.0 Game API.
Which three are valid, legal ways to help fulfill the developer's goal? (Choose three.)
A. Games Canvas game = new Game Canvas (true);
//suppress key events
B. my Sprtite.collides with (other Script, false);
//pixel level false
C. layer Manager. set View window (0,0,getwidth() + 50, get Height () +50);
D. key pressed (int key Code){ //code to process the key press event
}
E. while (game Active) {
int Key states = get key statues ();
if ((key Statues & LEFT_PRESSED) !=0) {
//code to move a Sprite
}
}
Answer: A, B, E
Question 15.
Which statement is true about Tiled Layer and Sprite objects maintained by Layer Manager object?
A. Sprite object are always added as the background layer.
B. Tiled Layer objects are always added as the background layer.
C. Either Sprite or Tiled Layer objects may be inserted at a unique position in the Layer Manager.
D. Once either Sprite or Tiled Layer objects are added, the order can be changed only by creating
and adding to a new Layer Manager.
Answer: C
Question 16.
Manager. Create Player (. .) may involve synchronous blocking I/O operations, possible execution for an indefinite amount of time.
Which of the most efficient way to create a Player object and receive the events it generates?
A. Ensure System. gc () is called before creating the Player.
B. Create the Player in the current thread and listen for events in a separate thread.
C. Create the Player from an Input Stream, possibly after copying data into memory.
D. Create the Player in a separate thread from user interface, then create a Player Listener that
receives events from this Player.
Answer: D
Question 17.
Given two options to synthesize tones:
Manager .play Tone( ):
And
5. //...
11. Player p = Manager.create player (manager. TONE_DEVICE_LOCATOR);
12. p.realize();
13. Tone Control C = (Tone Control ) p.get Control ("tone Control");
14. c.set Sequence (sequence);
15. p.start ( ) ;
Which is true?
A. Both option have same result
B. The second option lets developers set playback pitch.
C. The second option lets developers set playback tempo.
D. Manager. TONE_DEVICE_LOCATOR is not a valid field.
Answer: C
Question 18.
Which object or object must be created to generate a simple tone?
A. A Player must be created.
B. A Player and Tone Control must be created.
C. A Player and a Player Listener must be created.
D. None. Manager can be used to generate a simple tone.
Answer: D
Question 19.
What is Time Base?
A. a top-level MMAPI interface
B. a top-level MIDP 2.0 interface
C. a top-level MMAPI class implementing the control interface
D. a MIDP 2.0 interface extending the Control interface
Answer: A
Question 20.
Given
10. // ...
20. Volume Control vc;
21. vc = (Volume Control) player. get Control("Volume Control")
22. vc.set Level(4);
23. // ...
Which is true about the volume of audio playback from player when the code is executed?
A. The volume of the audio is exactly 40 dB.
B. The volume of the audio is approximately 0.4 dB
C. The volume of the audio is up to MIDP device.
D. The volume of the audio must be the same on all MIDP devices.
Answer: C
Question 21.
Assuming an application description contains:
MID let-Date-Size: 4096
Which is true?
A. The device will permanently reserve 4096 bytes of heap space for the application.
B. The device will permanently reserve 4096 bytes of RMS space for the application.
C. The device will use 4096 bytes to buffer data the application sends over the network.
D. The device will use 4096 bytes to buffer data the application receives over the network.
Answer: B
Question 22.
Which two are true regarding a device that implements JTWI? (Choose two.)
A. The device may implement a high version of the API as identified by the JTWI specification.
B. The device must implement a high version of the API as identified by the JTWI specification.
C. The device must implement at least the lowest version of the API as identified by the JTWI
specification.
D. The device is NOT required to implement all of the MIDP 2.0 API as identified by the MIDP 2.0
specification.
Answer: A, C
Question 23.
Which two clarifications does the JTWI specification make regarding how devices implement the Mobile Media API? (Chose 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.
Answer: A, D
Question 24.
Which arguments should be passed to Connector. open ( ) ad text Message.set Address( ), respectively, to initiate an SMS text message using a server connection?
A. sms://:1234 and sms://+18005551234
B. sms://+108005551234 and sms://:1234
C. sms://:1234, with no need to call set Address ( )
D. sms://+18005551234, with no need to call set Address ( )
Answer: A
Question 25.
Given
21. message Connection mc;
22. mc = (Message Connection) Connector. open ("sms://:6222"):
23. mc.set Message Listener(this);
24. reader = new Msg Reader ( );
25. new thread (reader).Start ( );
26. //...
35. public k void notify Incoming Message (Message Connection mc2){
36. //...
40. }
41. //...
50. class Msg Reader implements Run able {
51. //...
55. }
Which two are true? (Choose two.)
A. This MID let uses synchronous WMA message handling
B. This MID let uses asynchronous WMA message handling
C. This MID let must have a MID let-Push-<n> entry in its JAD file.
D. This MID let typically includes a method call such as: mc. Receive ( ).
E. This MID let must contain a call Push Registry. Register Connection( ).
Answer: B, D
|
Copyright © 2004 CertsBraindumps.com Inc. All rights reserved.