1. A midlet is a Java class that extends the abstract class:  | 
			
			
			| javax.microedition.MIDlet | 
			
			
			| javax.microedition.midlet | 
			
			
			| javax.microedition.midlet.MIDlet | 
			
			
			javax.microedition.midlet.midlet
 
  | 
			
			
			
			2. Which one of the following methods of the MIDlet abstract class must be implemented by a midlet:  | 
			
			
			| initApp, startApp | 
			
			
			| startApp, destroyApp | 
			
			
			| startApp, pauseApp, destroyApp | 
			
			
			initApp, startApp, pauseApp, destroyApp
 
  | 
			
			
			
			3. After compiling your midlet, you must process it with a command to ensure that it is valid before use by the Kilo virtual machine (KVM). What is the name of that command?  | 
			
			
			| midp | 
			
			
			| javac-bootclasspath | 
			
			
			| preverify | 
			
			
			jar
 
  | 
			
			
			
			4. A Java Application Descriptor (JAD) file is a text file that is similar to a manifest, except that it is not packaged in a JAR file. Some of the shared attributes that must have identical values are: MIDlet-Name, MIDlet-Version, and MIDlet-Vendor.  | 
			
			
			| The ones in the descriptor override those in the manifest | 
			
			
			| The ones in the manifest override those in the descriptor | 
			
			
			 | 
			
			
			
 
  | 
			
			
			
			5. When downloading application descriptors (.jad files) from a web server, the web server must return a MIME type of:  | 
			
			
			| text/vnd.sun.j2me.midp | 
			
			
			| text/vnd.sun.j2me.jad | 
			
			
			| text/vnd.sun.j2me.app-descriptor | 
			
			
			text/vnd.sun.j2me.midapp
 
  | 
			
			
			
			6. A midlet suite is a set of midlets that are packed together into a single JAR file. Midlets within the same suite:  | 
			
			
			| Can share the classes and resources contained in the JAR file | 
			
			
			| Cannot share the classes and resources contained in the JAR file | 
			
			
			 | 
			
			
			
 
  | 
			
			
			
			7. Midlets from different suites:  | 
			
			
			| Can interact directly. | 
			
			
			| Cannot interact directly. | 
			
			
			 | 
			
			
			
 
  | 
			
			
			
			8. What is the difference between a configuration (such as the CLDC) and a profile (such as the MIDP)?  | 
			
			
			| a configuration defines the set of class libraries available for a particular domain of devices, and a profile provides I/O and network APIs. | 
			
			
			| a configuration defines a vertical set of classes that a profile can use. | 
			
			
			| a configuration defines a minimum set of class libraries for a wide range of devices, and a profile defines the set of APIs available for a particular family of devices. | 
			
			
			a profile is the foundation for a configuration.
 
  | 
			
			
			
			9. All MIDP implementations are required to support what image format?  | 
			
			
			| GIF | 
			
			
			| JPG | 
			
			
			| BMP | 
			
			
			PNG
 
  | 
			
			
			
			10. If a midlet needs to receive high-level events from the implementation, which interface should it implement?  | 
			
			
			| ActionListener | 
			
			
			| CommandListener | 
			
			
			| Windows Listener | 
			
			
			ChoiceListener
 
  | 
			
			
			
			11. All MIDP GUI classes are contained in what package?  | 
			
			
			| javax.microedition.gui | 
			
			
			| javax.microedition.lcd | 
			
			
			| javax.microedition.lcdui | 
			
			
			javax.microedition.display
 
  | 
			
			
			
			12. The MIDP user interface API is a subset of the AWT/ Project Swing libraries.  | 
			
			
			| True | 
			
			
			| False | 
			
			
			 | 
			
			
			
 
  | 
			
			
			
			13. Which class would you use to write applications to access low-level input events or to issue graphics calls for drawing to the display?  | 
			
			
			| Display | 
			
			
			| Command | 
			
			
			| Screen | 
			
			
			Screen
 
  | 
			
			
			
			14. Which of the following statements is true regarding the Generic Connection framework:  | 
			
			
			| The CLDC provides an implementation for the HTTP protocol. | 
			
			
			| All MIDP implementations must provide support for the HTTP protocol. | 
			
			
			| The MIDP provides implementation for datagram and socket connections. | 
			
			
			The Connection interface is part of the java.net package.
 
  | 
			
			
			
			15. The heart of the Generic Connection framework is:  | 
			
			
			|  javax.microedition.Connection | 
			
			
			| javax.microedition.Connector | 
			
			
			| javax.microedition.StreamConnection | 
			
			
			javax.microedition.HttpConnection
 
  | 
			
			
			
			16. What is the correct syntax, using the Generic Connection framework, to open an HTTP connection:  | 
			
			
			| Connection c = Connection.open("http://developer.java.sun.com"); | 
			
			
			| Connector c = Connector.open("http://developer.java.sun.com"); | 
			
			
			| Connection c = Connector.open("http://developer.java.sun.com"); | 
			
			
			Connector c = Connection.open("http://developer.java.sun.com");
 
  | 
			
			
			
			17. The MIDP provides a mechanism for MIDlets to persistently store data in a platform-dependent file and retrieve it later. This mechanism is:  | 
			
			
			| Object Serialization | 
			
			
			| JDBC | 
			
			
			| RMS | 
			
			
			ODBC
 
  | 
			
			
			
			18. A Java virtual machine1 (JVM) supporting CLDC has no support for:  | 
			
			
			| Floating point numbers | 
			
			
			| Reflection | 
			
			
			| JNI | 
			
			
			All of the above
 
  | 
			
			
			
			19. Which of the following non-exception classes are inherited from the Java 2 Standard Edition 1.3 java.util package by the CLDC:  | 
			
			
			| Calendar, Date, Enumeration, Hashtable, Stack, Vector | 
			
			
			| Calendar, Date, Enumeration, Hashtable, Random, Stack, Timer, Vector | 
			
			
			| Calendar, Date, Enumeration, Hashtable, Stack, Vector, StringTokenzier | 
			
			
			All of the java.util classes are inherited
 
  | 
			
			
			
			20. Which of the following techniques can be used for wireless session tracking?  | 
			
			
			| Cookies | 
			
			
			| URL Rewriting | 
			
			
			| Hidden Fields | 
			
			
			None of the above
 
  |