1.How would a MIDlet that uses a GameCanvas efficiently update only a small region of the screen, from
the data in the off-screen buffer?
A. call flushGraphics(int, int, int, int) that specifies the region to be flushed
B. call serviceRepaints() and set a clip region on the Graphics object in paint()
C. Pixels that are NOT to be flushed should be made transparent.
D. write extra code to coalesce the flushGraphics() calls over many loops into one call
Answer: A
2.Which three are true.? (Choose three.)
A. A MIDlet suite consists of only one JAR file.
B. Different MIDlet suites can share data with each other.
C. A MIDlet suite can have more than one class that extends the MIDlet class.
D. A MIDlet suite is an array of MIDlet objects.
E. The names of MIDlet classes that belong to different MIDlet suites must be different.
Answer: A,B,C
3.Which method is initially called when the MIDlet starts in response to a push notification?
A. PushRegistry.listConnections()
B. PushRegistry.notifyIncomingConnection()
C. MIDlet.startApp()
D. MIDlet.notifyApp()
E. MIDlet.pushApp()
F. MIDlet.resumeRequest()
Answer: C
4.Given:
21. TextField tf = new TextField("Memo", "", 50, TextField.ANY);
22. DateField df = new DateField("Date", DateField.DATE_TIME);
23. Form fm = new Form("Form demo");
24. Command cmCount = new Command("Word count", Command.ITEM, 1);
25. Command cmExit = new Command("Exit", Command.EXIT, 1);
26.
27. tf.addCommand(cmCount);
28. fm.append(df);
29. fm.append(tf);
30. fm.addCommand(cmExit);
31. fm.setCommandListener(this);
Which is true?
A. An exception is thrown at runtime.
B. The cmCount and cmExit commands is always available on fm, regardless of which Item is active.
C. Compilation fails.
D. The cmCount command is available only when tf is the active Item.
E. The cmExit command is available only when df is the active Item.
Answer: D
6.Given:
10. MessageConnection conn;
11.
12. public void startApp() {
13. try {
14. conn = (MessageConnection) Connector.open("cbs://:3382");
15. //...
17. } catch (Exception e) {
18. //...
20. }
21. }
22.
30. public void run() {
31. Message msg = conn.receive();
32. //...
40. conn.send(msg);
41. }
What is the result?
A. An error at line 40 causes an exception at runtime.
B. An error at line 14 causes compile to fail.
C. An error at line 31 causes an exception at runtime.
D. The code successfully sends a message.
E. An error at line 14 causes an exception at runtime.
Answer: A
8.Given the push connection string:
MIDlet-Push-1: socket://:79, com.sun.example.SampleChat, 192.3?.?.*
Which two addresses are allowed to push connection notifications to the application? (Choose two.)
A. 192.31.101.1
B. 192.32.1.101
C. 192.310.101.1
D. 192.3.1.101
E. 192.31.1.1
F. 192.310.10.1
Answer: B,E
9.A MIDlet has entered the paused state. Which is a valid action to attempt to make it active?
A. The MIDlet cannot revert back to the active state.
B. The MIDlet calls resumeRequest() through a timer.
C. The MIDlet calls its own startApp() method.
D. The MIDlet has to wait quietly to be rescheduled.
Answer: B
10.Which two are true for List? (Choose two.)
A. You can add Command objects to a List without registering a CommandListener.
B. Images and text in a List CANNOT be changed once the List is created.
C. Traversing and scrolling in a List causes events that can be programmatically detected.
D. A CommandListener must be registered for the application to recognize user selections in a List.
Answer: A,D
11.Given:
15. String addr = "sms://+14155557296";
16. MessageConnection conn
17. = (MessageConnection) Connector.open(addr);
18. // insert code here
19. message.setPayloadData(imageBytes);
Assume imageBytes is a valid byte array.
Which statement, inserted at line 18, causes the rest of the code fragment to compile correctly?
A. Message message = new BinaryMessage();
B. BinaryMessage message = (BinaryMessage)
conn.newMessage(MessageConnection.BINARY_MESSAGE);
C. Message message = conn.newMessage(MessageConnection.BINARY_MESSAGE);
D. BinaryMessage message = new BinaryMessage();
Answer: B
We will help you prepare well for your coming Oracle 1Z0-869 Certification Exam with confidence.Oracle 1Z0-869 Certification Exam Training, Practice Questions and Answers with Explanations, and Oracle 1Z0-869 braindumps are available to you on my blog.
Free download Oracle 1Z0-869(Java Mobile Edition 1 Mobile Application Developer Certified Professional Exam) training material and Practice Test,if you need more IT exam real Q&As,u can leave ur mailbox,or like my facebook page.
No comments:
Post a Comment