Java ME (Java Platform, Micro Edition) MCQs

Java ME (Java Platform, Micro Edition) MCQs

Our experts have gathered these Java ME (Java Platform, Micro Edition) MCQs through research, and we hope that you will be able to see how much knowledge base you have for the subject of Java ME (Java Platform, Micro Edition) by answering these 70+ multiple-choice questions.
Get started now by scrolling down!

A.   256KB

B.   128KB

C.   64KB

D.   16KB 

2: Which of the following is designed for resource-constrained devices like consumer products and embedded devices?

A.   CDC HotSpot Implementation

B.   CLDC HotSpot Implementation

C.   Java HotSpot Client

D.   Java HotSpot Server

3: SMS Push is not required for JTWI.

A.   True

B.   False

4: Which of the following statements regarding configuration in Java ME is incorrect?

A.   It is defined by the Java Community Process

B.   It is not subjected to compatibility tests

C.   It specifies the minimum Java libraries required for a particular set of devices

D.   It specifies the minimum virtual machine capabilities required for a particular set of devices

5: Which of the following is used to specify the Push enable MIDlets?

A.   Midlet-Push-<y>

B.   Midlet-enable-<n>

C.   Midlet-Push-<n>

D.   Midlet-enable-<y> 

A.   96 x 54 (12 bit color depth)

B.   96 x 54 (1 bit color depth)

C.   125 x 125 (1 bit color depth)

D.   125 x 125 (12 bit color depth)

7: Which of the following devices is served by CDC?

A.   Internet Screen Phones

B.   Auto Telemetric Systems

C.   Smart Cards

8: Which of the following features would the target devices for CLDC have?

A.   They have a 128KB to 512KB of memory

B.   They are often battery powered

C.   They have a processor speed of 6MHZ-16MHZ

D.   They often have a limited bandwidth network connection (9600) 

9: The version of CLDC in a JAD file can be known by the

A.   MIDlet-Configuration

B.   Microedition-Configuration

C.   MIDP-Configuration

D.   Configuration 

10: Which of the following is not the characteristic feature of the target devices of CDC?

A.   They have a minimum of 512KB ROM

B.   They support the complete JVM specification

C.   They are network enabled

D.   They have a minimum of 512KB RAM

11: Which of the following are not Java ME Configurations?

A.   Connected Device Configuration

B.   Connected Restricted Configuration

C.   Connected Limited Device Configuration

D.   Common Legitimate Device Configuration 

12: Which of the following image formats is supported by JTWI 1.0?

A.   JPEG and GIF

B.   PNG

C.   TIFF and PNG

D.   PNG and JPEG

13: According to JTWI, what is the standard size for a JAD file?

A.   32KB

B.   128KB

C.   64KB

D.   5KB

14: State whether true or false:
Migration of code from J2SE to CDC would be a straight forward process.

A.   True

B.   False

15: Which of the following migration of codes is possible?

A.   CDC-->CLDC

B.   CLDC-->CDC

C.   MIDP-->CDC

16: Which of the following methods are defined as a part of CLDC Internationalization?
1.new InputStreamReader(InputStream)
2.new InputStreamReader( InputStream,String)
3.new OutputStreamWriter(OutputStream)
4.new OutputStreamWriter(OutputStream, String)

A.   1,2

B.   1,3

C.   2,3,4,

D.   1,2,3,4

17: Which of the following is true for Technology Compatibility Kit(TCK)?

A.   TCK is applicable in CLDC only

B.   TCKs are developed and licensed by the JSR specification lead

C.   TCK is a test suite that verifies whether an implementation is compliant with a given JSR

18: Which of the following methods would be suitable in opening a connection using the Generic Connection framework?

A.   connect(url)

B.   Connector.open(url)

C.   Network.open(url)

D.   conopen(url) 

19: Which of the following are Java ME profiles?

A.   MIDP

B.   Foundation

C.   Personal

D.   Vista

20: Which of the following fall under the scope of CLDC?

A.   Core Java Libraries

B.   Profile Configuration

C.   High-level Application Model

D.   User Interface Support

21: Identify the incorrect statement regarding CLDC:

A.   It enables dynamic downloading of applications and content to small devices

B.   It is a minimum-footprint application development platform for resource constrained connected devices

C.   It enables third-party software development for small devices

D.   It is not standardized through the Java Community Process 

22: Which of the following is designed for single-processor desktop environments that require faster start-up time and a smaller memory footprint?

A.   CLDC HotSpot Implementation

B.   Java HotSpot Client

C.   Java HotSpot Server

23: Which of the following is not required for JTWI?

A.   WMA 1.1

B.   CLDC 1.1

C.   MIDP 2.0

D.   MMAPI 1.1 

24: MIDP specification requires support for which of the following auth schemes?

A.   Digest

B.   Form

C.   Basic

25: Which of the following are a part of the CLDC expert group?

A.   Siemens

B.   Samsung

C.   Sharp

D.   Oracle

E.   Fujitsu

F.   All of the above

G.   None of the above 

26: Which of the following statements is incorrect regarding the Generic Connection framework?

A.   The central idea is to treat everything as a URL    

B.   Protocols are defined by profiles

C.   A new set of classes are defined for CLDC

D.   CLDC defines basic network types and mandates the network protocols 

27: Which of the following features are absent in CLDC as compared to JVM?

A.   Floating point calculations

B.   Error Handling

C.   Garbage Collection

D.   Object finalization

28: Which of the following statements with respect to Java ME profiles is incorrect?

A.   They are defined through the Java Community Process initiative

B.   They are subject to a compatibility test

C.   They are a set of APIs which support a configuration for all devices

D.   They are subsets of two configurations, the Connected Limited Device Configuration (CLDC) and the Connected Device Configuration (CDC)

29: An attribute is defined in both JAD and MIDlet JAR files. Which one will take precedence over the other?

A.   The same attributes cannot be specified in both the files

B.   JAR file

C.   JAD file

30: Which of the following are the optional packages available with CDC?

A.   RMI Optional Package

B.   JDBC Optional Package

C.   Multimedia Optional Package

31: Which of the following is in sync with the sandbox model?

A.   Java class files have been properly verified and guaranteed to be valid Java applications

B.   Access to native functions is allowed

C.   Only a limited, predefined set of Java APIs are available to the application programmer

D.   The programmer can override the standard class loading mechanism or the system classes of the VM

E.   The programmer can download new libraries containing the native code 

32: Which of the following profiles give full AWT and applet support?

A.   Personal

B.   Foundation

C.   RMI

D.   All of the above 

33: Which of the following statements is correct regarding RecordStores?

A.   A call to RecordStore.deleteRecord will allow the recordID to be reused

B.   When updating a record, another user can update the same record at the same time

C.   All RecordStore operations are atomic, synchronized, and serialized

34: Which of the following is designed for multi-processor enterprise server environments that require maximum program execution speed, 64-bit support and very large memory heaps?

A.   CDC HotSpot Implementation

B.   CLDC HotSpot Implementation

C.   Java HotSpot Client

D.   Java HotSpot Server 

35: The MIDlet permission is defined in a JAD file using __________.

A.   Microedition-Permissions

B.   MIDP-Permissions

C.   Midlet-Permissions

D.   MIDlet-Configuration  

36: Which of the following is not a characteristic features of the target devices of CDLC?

A.   They have 128KB to 512KB of total memory

B.   They support the complete JVM specification

C.   They are often battery powered

D.   They are network enabled

37: The character limit for an SMS Text message is:

A.   70 characters

B.   160 characters

C.   Whether it is 160 or 70 characters depends on the encoding

38: Which of the following devices is served by CLDC?

A.   PDAs and Communicators

B.   Phones and Pagers

C.   Embedded Devices

39: The RecordStore can be shared among multiple MIDlets.

A.   True

B.   False  

40: Which of the following functions fall under the scope of J2ME profiles?

A.   Application installation and life-cycle management

B.   Event Handling

C.   Database Support

D.   High-level Application Model

E.   User Interface Support

F.   All of the above 

41: According to JTWI, what is the standard size for a MIDlet jar file?

A.   32KB

B.   128KB

C.   64KB

D.   16KB 

42: What will happen on attempting to compile and run the following code?
public class ERMidlet extends MIDlet implements CommandListener, Runnable
{
        private Display mDisplay;
        private Form myForm;
        private Command exitCommand;
        private StringItem myString;

        ERMidlet()
        {
                myForm = new Form("Expert Rating Exam");
                exitCommand = new Command("Exit",Command.EXIT, 0);
                myString = new StringItem("15");
                myForm.append(myString);

                myForm.addCommand(exitCommand);
                myForm.setCommandListener(this);

        }

        public void startApp()
        {
                mDisplay = Display.getDisplay(this);
                mDisplay.setCurrent(myForm);
        }

        public void commandAction (Command c, Displayable s)
        {
                destroyApp(false);
                notifyDestroyed();
        }

        public void run()
        {
        }

        public void pauseApp()
        {
        }

        public void destroyApp(boolean unconditional)
        {
        }

A.   It will display 15 on the devices screen

B.   The code will not compile

C.   The code will compile but will throw a runtime exception

D.   It will not display anything  

43: Which of the following is not addressed by MIDP?

A.   Display toolkit and user input methods

B.   Messaging

C.   Security and networking over wireless network connections

D.   Persistent data storage

E.   All of the above are addressed 

44: Which of the following devices is served by CDC?

A.   PDAs and Communicators

B.   Phones and Pagers

C.   Smart Cards

D.   Embedded Devices 

45: Which of the following packages constitute the Java ME?

A.   JCP

B.   Configuration

C.   Profiles

D.   Optional packages

46: Which of the following in CLDC is not derived from J2SE?

A.   Vector

B.   Stack

C.   Hashtable

D.   ArrayList

E.   Enumeration 

47: Which of the following are a part of the CLDC expert group?

A.   Nokia

B.   Motorola

C.   Sony

D.   Ericsson

E.   Symbian

F.   All of the above

G.   Only a, b and e

48: For a device to be JTWI MMAPI enabled, it must support:

A.   16 Bit KHz color PCM (video)

B.   16 Bit KHz mono PCM (audio)

C.   8 Bit KHz mono PCM (audio)

D.   8 Bit KHz color PCM (video)

49: The callback method that is invoked for a specific item event is _____________.

A.   itemEventFired(ItemEvent)

B.   itemStateChanged(Item)

C.   itemEventFired(Item)

D.   itemStateChanged(ItemEvent ie) 

50: Which of the following is a CDC based profiles?

A.   Foundation

B.   PDA

C.   MID