Sun Certified Mobile Application Developer for J2ME. v1.0
Index >> SUN >> SCMAD >> "310-110"Exam
VUE/Prometric Code:310-110
Questions and Answers:340 Q&As
Price:$89
Updated:2008-11-12
| Sun Certified Mobile Application Developer for J2ME. v1.0 | |||
| Test | Q&A | Updated | Price |
| 310-110 | 340 Q&A | 2008-11-12 | $89 |
please download in PDF format Demo:
killtest 310-110 Exam Features
High quality and Value for the 310-110 Exam.
Killtest Practice Exams for Sun Certified Mobile Application Developer for J2ME. v1.0 310-110 are written to the highest standards of technical accuracy, using only certified subject matter experts and published authors for development.
100% Guarantee to Pass Your SCMAD exam and get your SCMAD Certification.
We guarantee your success in the first attempt. If you do not pass the 310-110 (Sun Certified Mobile Application Developer for J2ME. v1.0) on your first attempt we will give you a FULL REFUND of your purchasing fee AND send you another same value product for free.
killtest 310-110 Downloadable.
Printable Exams (in PDF format) Our Exam 310-110 Preparation Material provides you everything you will need to take your SCMAD exam. The SCMAD Certification details are researched and produced by Professional Certification Experts who are constantly using industry experience to produce precise, and logical. You may get SCMAD exam questions from different web sites or books, but logic is the key. Our Product will help you not only pass in the first SCMAD exam try, but also save your valuable time .
- Comprehensive questions with complete details about 310-110 exam.
- 310-110 exam questions accompanied by exhibits.
- Verified Answers Researched by Industry Experts and almost 100% correct.
- Drag and Drop questions as experienced in the Real SCMAD exam.
- 310-110 exam questions updated on regular basis.
- Like actual SCMAD Certification exams, 310-110 exam preparation is in multiple-choice questions (MCQs).
- Tested by many real SCMAD exams before publishing.
- Try free SCMAD exam demo before you decide to buy it in http://www.Killtest.com.
High quality and Value for the 310-110 Exam:100% Guarantee to Pass Your SCMAD exam and get your SCMAD Certification.
http://www.Killtest.com The safer.easier way to get SCMAD Certification.
We offer Demo version of Q&A, Q&A are as follows (not to provide picture):
310-110:please download 310-110 in PDF format Demo 
1.During a MIDlet suite installation, a JTWI-compliant device performs the following actions: downloads and installs the JAD file downloads the JAR file fails to install the MIDlet suite What is the correct behavior?
A.The device must log the failure in persistent storage.
B.The device must free the space allocated for that MIDlet suite.
C.The device must save the JAD and the JAR file for future upgrading.
D.The device must save the JAD file for future downloads of the same MIDlet suite.
Correct:B
2.Given: a JAR containing a MIDlet named TesterMIDlet a JAD with this content: CertificationExam: Sun Certified Mobile Application DeveloperMIDlet-1: TesterMIDlet, , certification.TesterMIDlet MIDlet-Jar-Size: 2038 MIDlet-Jar-URL: Certification.jar MIDlet-Name: Certification MIDlet-Vendor: A Testing Company MIDlet-Version: 1.0 MicroEdition-Configuration: CLDC-1.0 MicroEdition-Profile: MIDP-2.0 This MIDlet needs to get the property with the key CertificationExam defined in the JAD. This needs to be assigned to a String ExamName from within the MIDlet.startApp() method. What is the correct way to accomplish this?
A.String ExamName = System.getProperty("CertificationExam");
B.String ExamName = this.getAppProperty("CertificationExam");
C.String ExamName = System.getProperty("MIDlet-CertificationExam");
D.String ExamName = this.getAppProperty("MIDlet-CertificationExam");
Correct:B
3.A MIDlet has entered the paused state. Which is a valid action to attempt to make it active?
A.The MIDlet calls its own startApp() method.
B.The MIDlet has to wait quietly to be rescheduled.
C.The MIDlet cannot revert back to the active state.
D.The MIDlet calls resumeRequest() through a timer.
Correct:D
4.Which is true regarding the use of Thread objects in a CLDC 1.1 compliant virtual machine?
A.To stop a Thread, a developer can use the stop() method.
B.A Thread can be stopped only from the inside of a MIDlet class.
C.There is no way for one Thread to force another Thread to stop.
D.A Thread lives until it exits from the run() method it invoked at startup.
Correct:D
5.Which is used to retrieve the version of MIDP a device has implemented?
A.System.getProperty("microedition.profiles")
B.System.getProperty("microedition.platform")
C.System.getAppProperty("microedition.platform")
D.System.getAppProperty("microedition.profiles")
E.System.getProperty("microedition.configuration")
Correct:A
6.Given a MIDlet suite with the following JAD file: 1. MIDlet-1: MyMIDlet, MyMIDlet.png, MyMIDlet 2. MIDlet-Jar-Size: 23040 3. MIDlet-Name: MyFirstMIDlet 4. MIDlet-Version: 1.0 5. MIDlet-Jar-URL: http://mywebserver.com/mymidlets/MyMIDlet.jar 6. MIDlet-Vendor: MyCompany and manifest file: 1. MIDlet-Name: MyFirstMIDlet 2. MIDlet-Version: 1.1 3. MIDlet-Vendor: MyCompany 4. MIDlet-1: MyMIDlet, MyMIDlet.png, MyMIDlet Which is true about the installation?
A.The installation succeeds.
B.The installation fails due to an attribute mismatch.
C.The installation fails because the JAD file is invalid.
D.The installation fails because the manifest is invalid.
Correct:B
7.Which two are true about class file verification as defined by the CLDC specification? (Choose two.)
A.Verification is NOT required.
B.Verification can use a custom implementation.
C.Verification is completed at compile time and no further verification is necessary.
D.Verification can use the same implementation as defined in the JVM specification.
Correct:B D
8.Given the MIDlet code: 12. File f = new File("myFile.txt"); 13. FileOutputStream ds = new FileOutputStream(f); 14. OutputStreamWriter os = new OutputStreamWriter(ds); 15. BufferedWriter buf = new BufferedWriter(os); 16. buf.write('c'); What is the result?
A.The code compiles and runs, but line 16 is ignored.
B.Compilation succeeds, but an exception is thrown at runtime.
C.The code compiles and runs, and then writes the character c to the file myFile.txt.
D.Compilation fails because the code uses one or more classes, which are not supported in CLDC 1.1.
Correct:D
9.Click the Task button. Match the exceptions and errors with the platforms. You must label ALL exceptions and errors with one of the three platform options.
Correct:
Green choice3---->Yellow Choice1
Green choice2---->Yellow Choice2
Green choice1---->Yellow Choice6
Green choice1---->Yellow Choice3
Green choice3---->Yellow Choice5
Green choice1---->Yellow Choice4
10.Click the Task button. Place the appropriate platform label on the class name. If the class exists in both CLDC and J2SE, choose the "Exists in BOTH…" option, regardless of whether the package names are different.
Correct:
Green choice2---->Yellow Choice7
Green choice1---->Yellow Choice6
Green choice1---->Yellow Choice5
Green choice3---->Yellow Choice4
Green choice1---->Yellow Choice3
Green choice3---->Yellow Choice2
Green choice3---->Yellow Choice1
11.Given: 10. //… 20. try { 21. Hashtable table = new Hashtable(); 22. for (;;) table.put(new Object(), new Object()); 23. } catch (OutOfMemoryException e) { 24. Display.getDisplay().setCurrent(new Alert("Out of Memory!")); 25. } 26. //… Which is true?
A.Compilation fails.
B.The program hangs at line 22.
C.Out of Memory! Is printed to the system console.
D.An exception is thrown at runtime but there is no guarantee an alert will be shown to the user.
Correct:D
12.Which two are true regarding error handling for classes that exist in both CLDC and J2SE? (Choose two.)
A.The set of error classes is essentially the same in CLDC and J2SE.
B.The set of error classes is much reduced in CLDC to help reduce the overhead of the JVM.
C.If a class throws an error in CLDC, it should throw the same error as in J2SE or its nearest superclass.
D.There is no correspondence between the errors defined by CLDC and J2SE because the needs of CLDC and J2SE are so different.
Correct:B C
13.What is the minimum volatile memory requirement identified by the CLDC 1.1 specification?
A.32 KB
B.64 KB
C.128 KB
D.160 KB
Correct:A
14.A MIDP 2.0 developer is building a game using the MIDP game API that requires user control over the direction of a Sprite within a GameCanvas. The developer wants to keep performance high and reduce memory use. Which two fulfill the goals? (Choose two.)
A.suppress key events for the GameCanvas object
B.implement keyPressed(), keyReleased(), and keyRepeated()
C.poll for the current state of user key input in a loop, using getKeyStates()
D.in the GameCanvas object, use actual key codes rather than mapped game action constants
Correct:A C
15.Click the Exhibit button. The red collision rectangle around each Sprite in the image is NOT part of the actual image. The two Sprite objects intersect in the application precisely as shown. Which two are true? (Choose two.)
A.For the two Sprite objects to be considered in collision, each Sprite must have no more than one frame.
B.For the two Sprite objects to be considered in collision, collidesWith() must be invoked on both objects.
C.The most efficient way to detect collision is to use collision detection based solely on the collision rectangles.
D.If Sprite 1 is being tested for collision with Sprite 2 using pixel-level collision detection, the two Sprite objects will NOT be in collision.
Correct:C D
16.The developer is designing a game that uses the LayerManager and Sprite classes. Three Sprite objects are added to a LayerManager object and a call is placed to the LayerManager.paint(Graphics, x, y) method. In what order are the Sprite objects rendered to the device display?
A.The Sprites are rendered in a random order.
B.The Sprites that are animated are rendered first.
C.The Sprites are rendered in order of descending index.
D.The Sprites are rendered in an implementation specific manner.
Correct:C
17.Which method in Canvas is overridden in GameCanvas?
A.paint()
B.getGraphics()
C.getKeyStates()
D.flushGraphics()
E.flushGraphics(int, int, int, int)
Correct:A
18.What is true when an enumeration applies both a RecordFilter class and RecordComparator class on a record store?
A.The return order of the result set is undefined.
B.All records will always be available as part of the enumeration result set.
C.An enumeration CANNOT apply both a RecordFilter and RecordComparator.
D.The records that match the search criteria in RecordComparator will be returned using the ordering defined by RecordFilter.
E.The records that match the search criteria in RecordFilter will be returned using the ordering defined by RecordComparator.
Correct:E
19.Given: RecordStore rs = null; static final String REC_STORE = "appdata"; And, the record store does NOT already exist. Which is the correct way to open the record store, requesting the record store be created?
A.rs = RecordStore.openRecordStore(REC_STORE);
B.rs = RecordStore.createRecordStore(REC_STORE);
C.rs = RecordStore.openRecordStore(REC_STORE, 1);
D.rs = RecordStore.createRecordStore(REC_STORE, 1);
E.rs = RecordStore.openRecordStore(REC_STORE, true);
F.rs = RecordStore.createRecordStore(REC_STORE, true);
Correct:E
20.Given: rs is an object of type javax.microedition.rms.RecordStore. Baos is an object of type java.io.DataOutputStream. recId is an int. Which adds a record to rs?
A.byte [] b = baos.write(); try { recId = rs.add(b, 0, b.length); } catch (Exception e) { }
B.byte [] b = baos.toByteArray(); try { recId = rs.add(b, 0, b.length); } catch (Exception e) { }
C.byte [] b = baos.writeByteArray(); try { recId = rs.add(b, 0, b.length); } catch (Exception e) { }
D.byte [] b = baos.write(); try { recId = rs.addRecord(b, 0, b.length); } catch (Exception e) { }
E.byte [] b = baos.toByteArray(); try { recId = rs.addRecord(b, 0, b.length); } catch (Exception e) { }
F.byte [] b = baos.writeByteArray(); try { recId = rs.addRecord(b, 0, b.length); } catch (Exception e) { }
Correct:E
21.Given: 12. class TestRecordListener implements RecordListener { 13. public void recordAdded(RecordStore rcs, int recordId) { 14. // … 25. } 26. public void recordDeleted(RecordStore rcs, int recordId) { 27. // … 33. } 34. public void recordChanged(RecordStore rcs, int recordId) { 35. // … 43. } 44. } If rs is a valid and open record store, how can you properly associate a record listener with rs?
A.rs.setRecordListener(new TestRecordListener())
B.rs.addRecordListener(new TestRecordListener())
C.rs.newRecordListener(new TestRecordListener())
D.rs.createRecordListener(new TestRecordListener())
Correct:B
22.Which two are true regarding record stores? (Choose two.)
A.Record stores can be locked.
B.Record store names are case insensitive.
C.The first created in a record store has a record ID of 1.
D.All records within a record store have the same length.
E.When a MIDlet suite is removed, record store contents remain on the device.
F.MIDlets within the same suite can access the record stores of other MIDlets in the same suite.
G.MIDlets within the same suite CANNOT access the record stores of other MIDlets in the same suite.
Correct:C F
23.Which two are true when deleting a record store? (Choose two.)
A.If the record store is open, an exception will be thrown.
B.The record store must be open prior to calling deleteRecordStore().
C.The record store must be closed prior to calling deleteRecordStore().
D.For any registered listener of the record store, recordDeleted() will be called.
Correct:A C
24.Click the Task button. Place each player state next to its description.
Correct:
Green choice1---->Yellow Choice5
Green choice2---->Yellow Choice3
Green choice3---->Yellow Choice2
Green choice4---->Yellow Choice4
Green choice5---->Yellow Choice1
25.obscure is a content type unsupported on a device that executes: 10. String locator = "http://foobar.sun.com/content.obscure"; 11. Player player = Manager.createPlayer(locator); Which is true?
A.player is set to null.
B.An exception is thrown at runtime.
C.The file is interpreted as an ASCII file.
D.The file is interpreted as an HTML file.
Correct:B
26.Click the Task button. Place the MIDP 2.0 classes and interfaces in the correct positions in the hierarchy.
Correct:
Green choice4---->Yellow Choice2
Green choice2---->Yellow Choice1
Green choice2---->Yellow Choice1
Green choice3---->Yellow Choice3
Green choice1---->Yellow Choice4
27.Given two options to synthesize tones: Manager.playTone(); And: 5. //… 11. Player p = Manager.createPlayer(Manager.TONE_DEVICE_LOCATOR); 12. p.realize(); 13. ToneControl c = (ToneControl)p.getControl("ToneControl"); 14. c.setSequence(sequence); 15. p.start(); Which is true?
A.Both options have the 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.
Correct:C
28.Which is the most efficient method to generate a silence between tones in a tone sequence?
A.pause playback and set volume to -1
B.use RateControl with ToneControl
C.use the constant ToneControl.SILENCE
D.stop the playback of the tone sequence and restart it
Correct:C
29.What are the rules for the look and feel of the user interface components?
A.The user interface look and feel may be drastically different on different devices.
B.The user interface is always in monochrome, so the developer should NOT use color.
C.The user interface always looks exactly as it does in the MIDP Reference Implementation.
D.The dimensions of all the user components are always the same on any device, even if they look different.
Correct:A
30.Click the Task button. Place the API label (high-level or low-level) on the code snippet to indicate whether or not the code is from the high-level or low-level API. Assume that all variable names reflect the object type used in the code.
Correct:
Green choice1---->Yellow Choice1
Green choice2---->Yellow Choice2
Green choice1---->Yellow Choice6
Green choice2---->Yellow Choice3
Green choice2---->Yellow Choice5
Green choice2---->Yellow Choice4


