๐Ÿงช J2ME MCQ Quiz Hub

J2ME Mcq Question Set 1

Choose a topic to test your knowledge and improve your J2ME skills

What exception is thrown when Servlet initialization fails ?





โœ… Correct Answer: 2

How can a Servlet call a JSP error page ?





โœ… Correct Answer: 3

What is the key difference between using a and HttpServletResponse.sendRedirect()?





โœ… Correct Answer: 3

Why beans are used in J2EE architecture in stead of writing all the code in JSPs ?





โœ… Correct Answer: 2

Purpose of tag





โœ… Correct Answer: 2

The time between Command Execution and Response is called ______





โœ… Correct Answer: 3

At what stage, the life cycle of a CMP bean can be assumed to be started ?





โœ… Correct Answer: 3

In JSP, how can you know what HTTP method (GET or POST) is used by client request ?





โœ… Correct Answer: 1

What is legal about JSP scriplets





โœ… Correct Answer: 4

Which method is called first each time a Servlet is invoked ?





โœ… Correct Answer: 4

Which of the following statements is true about Java ME?





โœ… Correct Answer: 2

What is a configuration?





โœ… Correct Answer: 3

What is a profile?





โœ… Correct Answer: 3

The Personal Digital Assistant (PDA) Profile is based on:





โœ… Correct Answer: 2

The Foundation profile:





โœ… Correct Answer: 3

The RMI profile is meant to be used with:





โœ… Correct Answer: 2

The CLDC does not address user interface issues. They are left to be handled by the:





โœ… Correct Answer: 3

Which of the following network connections is supported by MIDP?





โœ… Correct Answer: 3

A Java ME-enabled device:





โœ… Correct Answer: 2

A device that currently uses CLDC (and therefore has a profile) can use that profile with CDC without modification.





โœ… Correct Answer: 1

In the CDC, user interface issues are handled by the:





โœ… Correct Answer: 2

The CDC targets devices with _______ of total memory available for the Java platform, including both RAM and flash or ROM.





โœ… Correct Answer: 4

The Java Virtual Machine1 specified to be used with the CDC is:





โœ… Correct Answer: 2

In MIDP, the maximum length of a record store name is:





โœ… Correct Answer: 2

. Is it possible to determine the contents of a JAR file before is it downloaded to a device?





โœ… Correct Answer: 2

The CDC and Foundation make corrections to the J2SE libraries by removing all noncritical, deprecated APIs.





โœ… Correct Answer: 1

Which of the following network connections is supported by the CDC?





โœ… Correct Answer: 1

Which of the following network connections is supported by the Foundation profile?





โœ… Correct Answer: 4

What compilation option should be used when compiling Java ME applications?





โœ… Correct Answer: 2

Which of the following areas are being investigated by the MIDP Next Generation?





โœ… Correct Answer: 4

A midlet is a Java class that extends the abstract class:





โœ… Correct Answer: 3

Which one of the following methods of the MIDlet abstract class must be implemented by a midlet:





โœ… Correct Answer: 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?





โœ… Correct Answer: 3

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. If any shared attributes are different, then:





โœ… Correct Answer: 1

When downloading application descriptors (.jad files) from a web server, the web server must return a MIME type of:





โœ… Correct Answer: 3

A midlet suite is a set of midlets that are packed together into a single JAR file. Midlets within the same suite:





โœ… Correct Answer: 1

Midlets from different suites:





โœ… Correct Answer: 2

What is the difference between a configuration (such as the CLDC) and a profile (such as the MIDP)?





โœ… Correct Answer: 3

All MIDP implementations are required to support what image format?





โœ… Correct Answer: 4

If a midlet needs to receive high-level events from the implementation, which interface should it implement?





โœ… Correct Answer: 2

All MIDP GUI classes are contained in what package?





โœ… Correct Answer: 3

The MIDP user interface API is a subset of the AWT/ Project Swing libraries.





โœ… Correct Answer: 2

Which class would you use to write applications to access low-level input events or to issue graphics calls for drawing to the display?





โœ… Correct Answer: 4

Which of the following statements is true regarding the Generic Connection framework:





โœ… Correct Answer: 2

The heart of the Generic Connection framework is:





โœ… Correct Answer: 2

What is the correct syntax, using the Generic Connection framework, to open an HTTP connection:





โœ… Correct Answer: 3

The MIDP provides a mechanism for MIDlets to persistently store data in a platform-dependent file and retrieve it later. This mechanism is:





โœ… Correct Answer: 3

A Java virtual machine1 (JVM) supporting CLDC has no support for:





โœ… Correct Answer: 4

Which of the following non-exception classes are inherited from the Java 2 Standard Edition 1.3 java.util package by the CLDC:





โœ… Correct Answer: 2

Which of the following techniques can be used for wireless session tracking?





โœ… Correct Answer: 2