SCMAD Free Mock Exam

Question 1 of 15 [Application Delivery Lifecycle]
Given:
public class MyMIDlet extends MIDlet {
MyMIDlet() {
//code here
} public void startApp() {
//code here
}
public void pauseApp() {
//code here
}
}
When a MIDlet begins execution which method of MyMIDlet method will be invoked by AMS?
Choice 1MyMIDlet constructor
Choice 2startApp() method
Choice 3pauseApp method
Question 2 of 15 [CLDC 1.0 1.1]
A JAR containing a MIDlet named TestGeneratorMIDlet.
A JAD with this content:
MIDlet-1: TestGeneratorMIDlet
...
Configuration: CLDC-1.0 MicroEdition-Profile: MIDP-2.0
...
This MIDlet needs to get the property with the key LabName defined in the JAD.
This needs to be assigned to a String labName from within the MIDlet.startApp() method.
What is the correct way to accomplish this?
Choice 1String labName = this.getProperty("LabName ");
Choice 2String labName = this.getAppProperty("LabName ");
Choice 3String labName = System.getProperty("MIDlet-LabName");
Choice 4String labName = this.getAppProperty("MIDlet- LabName ");
Question 3 of 15 [JTWI Specification]
Attributes in a JAD file can be divided into two main groups, depending on whether they are required or not. Note that attributes beginning with MIDLet- are thought to be "system" attributes, and are reserved. Which of the following is true about Application-specific attributes?
Choice 1MIDlet-myApplicationName is a valid application-specific attribute
Choice 2Application-specific attribute cannot begin with the MIDlet- prefix.
Choice 3MIDlet-@author is a valid application-specific attribute
Question 4 of 15 [MIDP Game API]
Which of the following statements are TRUE about TiledLayer?
Choice 1A TiledLayer can be rendered by manually calling its paint method
Choice 2A TiledLayer can be rendered automatically using a LayerManager object.
Choice 3The paint method will attempt to render portion of TiledLayer subject to the clip region of the Graphics object
Choice 4The rendered region can not be controlled by setting the clip region of the Graphics object.
Question 5 of 15 [MIDP Game API]
What is the best way to flushes the off-screen buffer to the display? Assume that the size of the flushed area is equal to the size of the GameCanvas
Choice 1By GameCanvas flushGraphics() method
Choice 2By GameCanvas flushGraphics(int x,int y,int width,int height) method
Choice 3By GameCanvas flushGraphics() method
Choice 4By GameCanvas pack() method
Question 6 of 15 [MIDP Persistent Storage]
Which of these methods is defined in the RecordFilter interface?
Choice 1matches
Choice 2match
Choice 3matcher
Choice 4equal
Question 7 of 15 [MIDP UI API]
What will happen when you pass null value for the image contents of an ImageItem?
Choice 1The ImageItem will occupy full space on the screen.
Choice 2The ImageItem will occupy no space on the screen.
Choice 3The ImageItem will throw error.
Question 8 of 15 [MMAPI]
Which method of RecordControl will be used to complete the current recording?
Choice 1close()
Choice 2save()
Choice 3commit()
Choice 4stopRecord()
Question 9 of 15 [Networking]
A DataSource may contain multiple SourceStreams
Choice 1True
Choice 2False
Question 10 of 15 [Push Registry]
What will happen when a stream connection received by the AMS via Push Registry mechanism times out for an application that is not currently running?
Choice 1A connection will be made again to the stream source after the associated application is started by the AMS.
Choice 2The AMS will keep the connection alive, start and transfer the connection.
Choice 3An IOException will be thrown to the application upon connection transfer from the AMS to the application.
Choice 4The behavior is not defined by the specification.
Question 11 of 15 [Push Registry]
What value should be passed registerAlarm() for pushRegistry to disable alarms?
Choice 1-1
Choice 20
Choice 3null
Choice 4PushRegistry.DISABLE
Question 12 of 15 [Security]
Which of the following statements are true about the trusted MIDlets permission.
Choice 1If the javax.microedition.io.Connector.http permission was requested and the protection domain has set the permission as allowed, no user confirmation will be needed to open an HTTP connection.
Choice 2Java EE MIDlet suite does not allow authorization mechanism.
Choice 3Each trusted MIDlet suite is assigned to a particular protection domain depending on the authorization mechanism.
Question 13 of 15 [Security]
The untrusted domain for untrusted MIDlet suites MUST allow, without explicit confirmation by the user, access to:
Choice 1RMS APIs
Choice 2javax.microedition.io.HttpConnection
Choice 3MIDlet Lifecycle APIs
Choice 4javax.microedition.io.HttpsConnection
Question 14 of 15 [WMA]
Which method can be used to find the number of segments that would be needed for sending a message?
Choice 1MessageConnection numberOfSegments() method
Choice 2MessageConnection numberOfSegments(Message) method
Choice 3MessageConnection noOfSegments(Message) method
Question 15 of 15 [WMA]
What value can be passed as setMessageListener of MessageConnection to de-register any currenly registered listener?
Choice 1MessageListener.DE_REG
Choice 2MessageListener.DE_REGISTER
Choice 3null
Choice 4MessageListener.DEACTIVATE