permaculture playing cards*
The moose likes Product and Other Certifications and the fly likes Some more Mock questions #1 For me Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "Some more Mock questions #1 For me" Watch "Some more Mock questions #1 For me" New topic
Author

Some more Mock questions #1 For me

Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Here are 20 more questions that I came up with. I hope they are right. If not just post why they are wrong and how to fix them and I will fix them

1. Which method(s) can be called to get the MIDP specification?
A. System.getAppProperty("MicroEdition-Profile");
B. System.getProperty("microedition.profiles");
C. System.getProperty("MicroEdition-Profile");
D. MIDlet.getProperty("microedition.profiles");
E. MIDlet.getAppProperty("MicroEdition-Profile");
2. Which Specification(s) will you not find a DataSource available?
A. CLDC 1.0
B. MIDP 2.0
C. CLDC 1.1
D. MMAPI 1.1
E. WMA 1.1

3. What is the results of the following code

A. Will Not Compile
B. Will Compile, but will through an Exception
C. Shows 12 on the devices screen
D. Displays nothing
E. Fails to install

4. What method(s) will put a Midlet into the Paused state?
A. destroyApp()
B. startApp()
C. new
D. pauseApp()
E. notifyDestroyed()

5. Which are valid Attribute Names for a Jad File?
A. MIDlet-Delete-Notify
B. MIDlet-Opt-Permissions
C. MIDlet-Icon
D. MIDlet-Name
E. MIDlet-Device-Type
6. Which attribute(s) are mandatory for a Jad File?
A. MIDlet-Install-Notify
B. MIDlet-Data-Size
C. MIDlet-Permissions
D. MIDlet-Vendor
E. MIDlet-Jar-URL
7. Which attribute(s) are optional for a Jad File?
A. MIDlet-<n>
B. MIDlet-Push-<n>
C. MIDlet-Vendor
D. MIDlet-Name
E. MIDlet-Description
When Installing a MIDLet a code is returned. Place Each Code with its
corresponding message
(might not be that specific on test, I hope not)
8. 900A. Attribute mismatch
9. 904B. Invalid Jar
10. 905C. Success
11. 907D. Push Registration Failure
12. 911E. Jar Size Mismatch
13. Is the Timer class Thread-safe?
A. True
B. False
For the following use
A = Mandatory
B = Conditional
C = Minimum
D = N/A
According to the JTWI specs, the following specifications are one of
the
four above
14. MMAPI
15. MIDP 2.0
16. CLDC 1.1
17. CLDC 1.0
18. WMA 1.1

19. Select all that are true regarding RecordStores.
A. When updating a record, another user can update the same record at
the
same time.
B. All RecordStore operations are atomic, synchronized, and serialized
C. If there is no RecordStore when calling
RecordStore.openRecordStore("MyRecords", true)
a RecordStoreNotFoundException is thrown
D. A call to RecordStore.deleteRecord will allow the recordID to be
reused
E. RecordStoreNames are case-sensitive and cannot exceed 32 characters.
20. Assume you have two MIDlet suites that are sharing a RecordStore.
MIDletA created the records store.

What are the results of the following code. Assume all interface
methods are correctly
implemented and the form and commands are already being
displayed.
the user selected the Delete command object


A. The shared RecordStore called BankAccounts is deleted from the
mobile
device.
B. The shared RecordStore called BankAccounts is deleted from MIDletB
Suite
only
C. The shared RecordStore called BankAccounts still exists, but all the
records are deleted.
D. An RecordStoreException is thrown in the openRecordStore() call.
E. An RecordStoreException is thrown in the deleteRecordStore() call.
F. An RecordStoreException is thrown in the deleteRecordStore() call
because
the vendor and suite name is missing in the parameters.
Answers will be in a seperate thread.

Good Luck
Mark
[ February 18, 2004: Message edited by: Mark Spritzler ]
[ February 20, 2004: Message edited by: Mark Spritzler ]

Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

I am going to make up some more tomorrow, but won't be able to post them till Friday night, because I can't access Javaranch from work, and I go to the gym tomorrow night.
Good Luck
Mark
Ken Ho
Ranch Hand

Joined: Feb 01, 2004
Posts: 91
Many thanks!!!


SCJP 1.4, SCWCD 1.3, SCBCD 1.3, SCMAD, SCDJWS
Tiger Meng
Ranch Hand

Joined: Nov 10, 2002
Posts: 32
Thank you Mark! What a Mock!

suggestion to question #1:
E. MIDlet.getAppProperty("MicroEdition-Profile");
since the "getAppProperty" is NOT a STATIC method of "MIDLet" class, you'd better put a snippet to make clear, like this:
public class hellocommand extends MIDlet{
public getMIDPVersion()
{
System.getAppProperty("MicroEdition-Profile");//1
System.getProperty("microedition.profiles");//2
System.getProperty("MicroEdition-Profile");//3
MIDlet.getProperty("microedition.profiles");//4
MIDlet.getAppProperty("MicroEdition-Profile");//5
this.getAppProperty("MicroEdition-Profile"); //6
}
}
this way "//5" is compile error, and "//6" is ok.
Too difficult to answer maybe.


SCJP SCJD SCWCD SCMAD
Tiger Meng
Ranch Hand

Joined: Nov 10, 2002
Posts: 32
question #3:
"... class MIDlet, implements" comma is BUG.
and
myString = new StringItem("12");will NOT compile
your answer is run well, why?
[ May 11, 2004: Message edited by: Meng XiaoXi ]
Tiger Meng
Ranch Hand

Joined: Nov 10, 2002
Posts: 32
Is question #8 a Drap & Drop question?
if i don't know this, will i loss 5 points on it? terrible
or i just loss 1 point?
 
Consider Paul's rocket mass heater.
 
subject: Some more Mock questions #1 For me
 
Similar Threads
unable to create form.
A few more mock questions. Set #2
Command buttons display on screen
How to write to a file?
Please help!