• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Some more Mock questions #1 For me

 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Mark Spritzler
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Many thanks!!!
 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Tiger Meng
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic