1. Home
  2. Computing & Technology
  3. Computer Certification
SCMAD Practice Test
20 Free SCMAD Practice Questions

Answer 11

Correct answer: b & c

Explanation:

Choices B and C are the correct answers.

Choice A is incorrect because record store names MUST be unique within the scope of a given MIDlet suite. In other words, MIDlets within a MIDlet suite are not allowed to create more than one record store with the same name; however, a MIDlet in one MIDlet suite is allowed to have a record store with the same name as a MIDlet in another MIDlet suite. In that case, the record stores are still distinct and separate.

The above explanation also proves that choice B is correct.

Choice C is correct because each time a record store is modified (by addRecord, setRecord, or deleteRecord methods) its version is incremented. This can be used by MIDlets to quickly tell if anything has been modified. The initial version number is implementation dependent. The increment is a positive integer greater than 0. The version number increases only when the RecordStore is updated. The increment value need not be constant and may vary with each update. This version number can be accessed by the application using the RecordStore.getVersion() method.

Choice D is incorrect because the record ID of a record added to the record store is provided by the RMS and is not under the control of the application. When the RecordStore.addRecord() method is called to add a record to the record store, it returns an integer that represents the ID that was assigned to the new record by the RMS. There is no provision in the RMS to modify this ID. If a record is deleted, then the ID is never reused.

Next page > Question 12

Explore Computer Certification
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Computer Certification

©2009 About.com, a part of The New York Times Company.

All rights reserved.