MCQs > IT & Programming > Java ME (Java Platform, Micro Edition) MCQs > Basic Java ME (Java Platform, Micro Edition) MCQs

Basic Java ME (Java Platform, Micro Edition) MCQ

1. Which of the following are a part of the CLDC expert group?

Answer

Correct Answer: All of the above

Note: This Question is unanswered, help us to find answer for this one

2. Which of the following are a part of the CLDC expert group?

Answer

Correct Answer: All of the above

Note: This Question is unanswered, help us to find answer for this one

3. The minimum number of threads supported by JTWI complaint implementations are:    

Answer

Correct Answer: 10

Note: This Question is unanswered, help us to find answer for this one

4. The CLDC properties are defined in:

Answer

Correct Answer: microedition.platform

Note: This Question is unanswered, help us to find answer for this one

5. The CLDC specific classes are defined in a package called:

Answer

Correct Answer: javax.microedition.io 

Note: This Question is unanswered, help us to find answer for this one

6. Which of the following form a part of CLDC?

Answer

Correct Answer: Additional I/O and networking libraries

Note: This Question is unanswered, help us to find answer for this one

7. The default mode for an open connection is:

Answer

Correct Answer: READ_WRITE

Note: This Question is unanswered, help us to find answer for this one

8. Mids server should only download data which has a MIME type of:

Answer

Correct Answer: text/vnd.sun.j2me.app-description

Note: This Question is unanswered, help us to find answer for this one

9. What would be the values for boxes 1 and 2 respectively in the given Generic Framework figure?

Answer

Correct Answer: Stream connection and content connection

Note: This Question is unanswered, help us to find answer for this one

10. Which of the following is designed for very small memory scenarios, typically 128 KB to 512 KB for the Java application environment?

Answer

Correct Answer: CLDC HotSpot Implementation

Note: This Question is unanswered, help us to find answer for this one

11. Which of the following could be the reasons for the introduction of the Generic Connection framework?

Answer

Correct Answer: Both of the above 

Note: This Question is unanswered, help us to find answer for this one

12. What would you infer from the following code?
1.MessageConnection conn;
2.
3. public void startApp()
4. {
5.
6. try
7. {
8. conn = (MessageConnection)Connector.open("cbs://:3382");
9. }
10. catch(Exception e)
11. {
12. //Some exception handling
13. }
14. }
15.
16. public void run()
17. {
18. Message msg = conn.receive();
19. conn.send(msg);
20. }

Answer

Correct Answer: There is an error on line 18

Note: This Question is unanswered, help us to find answer for this one

13. Which of the following profile is supported by CLDC?

Answer

Correct Answer: MIDP

Note: This Question is unanswered, help us to find answer for this one

14. Which of the following statements are correct regarding Xlet application programming model?

Answer

Correct Answer: It is very similar to the applet application programming model

Note: This Question is unanswered, help us to find answer for this one

15. Which of the following statements are correct regarding CLDC security?

Answer

Correct Answer: The J2SE security model is too big to be implemented in J2ME

Note: This Question is unanswered, help us to find answer for this one

16. In J2ME, the approximate number of classes taken from J2SE java.util is:

Answer

Correct Answer: 8

Note: This Question is unanswered, help us to find answer for this one

17. The following are the two statements related to Java Community Process:
Statement X: A Java specification begins life as a Java Community Process
Statement Y: The specifications for Java standard, enterprise and micro platforms are developed under the direction of JCP
Which of the following options is correct?

Answer

Correct Answer: Statement X is incorrect and Statement Y is correct

Note: This Question is unanswered, help us to find answer for this one

18. State whether true or false:
A MIDlet can retrieve its environment properties.

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

19. Which of the following are not supported by the CLDC 1.1 VM?

Answer

Correct Answer: Weak references

Note: This Question is unanswered, help us to find answer for this one

20. The constant to create a modal alert is:

Answer

Correct Answer: Alert.FOREVER

Note: This Question is unanswered, help us to find answer for this one

21. Which of the following authmodes can be used to share a RecordStore between multiple MIDlets?

Answer

Correct Answer: AUTHMODE_ANY

Note: This Question is unanswered, help us to find answer for this one

22. In J2ME, the approximate number of classes taken from J2SE java.io is:

Answer

Correct Answer: 13

Note: This Question is unanswered, help us to find answer for this one

23. Which of the following capabilities are provided to device manufacturers by embedded Java technology?

Answer

Correct Answer: A familiar object model based on C++

Note: This Question is unanswered, help us to find answer for this one

24. Which of the following is a CDC based profiles?

Answer

Correct Answer: Foundation

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: itemStateChanged(Item)

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: 8 Bit KHz mono PCM (audio)

Note: This Question is unanswered, help us to find answer for this one

27. Which of the following are a part of the CLDC expert group?

Answer

Correct Answer: All of the above

Note: This Question is unanswered, help us to find answer for this one

28. Which of the following in CLDC is not derived from J2SE?

Answer

Correct Answer: ArrayList

Note: This Question is unanswered, help us to find answer for this one

29. Which of the following packages constitute the Java ME?

Answer

Correct Answer: Configuration

Note: This Question is unanswered, help us to find answer for this one

30. Which of the following devices is served by CDC?

Answer

Correct Answer: PDAs and Communicators

Note: This Question is unanswered, help us to find answer for this one

31. Which of the following is not addressed by MIDP?

Answer

Correct Answer: All of the above are addressed 

Note: This Question is unanswered, help us to find answer for this one

32. 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)
        {
        }

Answer

Correct Answer: It will display 15 on the devices screen

Note: This Question is unanswered, help us to find answer for this one

33. According to JTWI, what is the standard size for a MIDlet jar file?

Answer

Correct Answer: 64KB

Note: This Question is unanswered, help us to find answer for this one

34. Which of the following functions fall under the scope of J2ME profiles?

Answer

Correct Answer: All of the above 

Note: This Question is unanswered, help us to find answer for this one

35. The RecordStore can be shared among multiple MIDlets.

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

36. Which of the following devices is served by CLDC?

Answer

Correct Answer: Phones and Pagers

Note: This Question is unanswered, help us to find answer for this one

37. Which of the following is not a characteristic features of the target devices of CDLC?

Answer

Correct Answer: They support the complete JVM specification

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: Midlet-Permissions

Note: This Question is unanswered, help us to find answer for this one

39. 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?

Answer

Correct Answer: Java HotSpot Server 

Note: This Question is unanswered, help us to find answer for this one

40. Which of the following statements is correct regarding RecordStores?

Answer

Correct Answer: All RecordStore operations are atomic, synchronized, and serialized

Note: This Question is unanswered, help us to find answer for this one

41. Which of the following profiles give full AWT and applet support?

Answer

Correct Answer: Personal

Note: This Question is unanswered, help us to find answer for this one

42. Which of the following are the optional packages available with CDC?

Answer

Correct Answer: RMI Optional Package

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: JAD file

Note: This Question is unanswered, help us to find answer for this one

44. Which of the following statements with respect to Java ME profiles is incorrect?

Answer

Correct Answer: They are a set of APIs which support a configuration for all devices

Note: This Question is unanswered, help us to find answer for this one

45. Which of the following features are absent in CLDC as compared to JVM?

Answer

Correct Answer: Floating point calculations

Note: This Question is unanswered, help us to find answer for this one

46. Which of the following statements is incorrect regarding the Generic Connection framework?

Answer

Correct Answer: CLDC defines basic network types and mandates the network protocols 

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: All of the above

Note: This Question is unanswered, help us to find answer for this one

48. MIDP specification requires support for which of the following auth schemes?

Answer

Correct Answer: Basic

Note: This Question is unanswered, help us to find answer for this one

49. Which of the following is not required for JTWI?

Answer

Correct Answer: MMAPI 1.1 

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: Java HotSpot Client

Note: This Question is unanswered, help us to find answer for this one

51. Identify the incorrect statement regarding CLDC:

Answer

Correct Answer: It is not standardized through the Java Community Process 

Note: This Question is unanswered, help us to find answer for this one

52. Which of the following fall under the scope of CLDC?

Answer

Correct Answer: Core Java Libraries

Note: This Question is unanswered, help us to find answer for this one

53. Which of the following are Java ME profiles?

Answer

Correct Answer: MIDP

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: Connector.open(url)

Note: This Question is unanswered, help us to find answer for this one

55. Which of the following is true for Technology Compatibility Kit(TCK)?

Answer

Correct Answer: TCKs are developed and licensed by the JSR specification lead

Note: This Question is unanswered, help us to find answer for this one

56. 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)

Answer

Correct Answer: 1,2,3,4

Note: This Question is unanswered, help us to find answer for this one

57. Which of the following migration of codes is possible?

Answer

Correct Answer: CLDC-->CDC

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

59. According to JTWI, what is the standard size for a JAD file?

Answer

Correct Answer: 5KB

Note: This Question is unanswered, help us to find answer for this one

60. Which of the following image formats is supported by JTWI 1.0?

Answer

Correct Answer: PNG

Note: This Question is unanswered, help us to find answer for this one

61. Which of the following are not Java ME Configurations?

Answer

Correct Answer: Connected Restricted Configuration

Note: This Question is unanswered, help us to find answer for this one

62. Which of the following is not the characteristic feature of the target devices of CDC?

Answer

Correct Answer: They have a minimum of 512KB RAM

Note: This Question is unanswered, help us to find answer for this one

63. The version of CLDC in a JAD file can be known by the

Answer

Correct Answer: Microedition-Configuration

Note: This Question is unanswered, help us to find answer for this one

64. Which of the following features would the target devices for CLDC have?

Answer

Correct Answer: They have a 128KB to 512KB of memory

Note: This Question is unanswered, help us to find answer for this one

65. Which of the following devices is served by CDC?

Answer

Correct Answer: Internet Screen Phones

Note: This Question is unanswered, help us to find answer for this one

66. According to JTWI, what is the recommended screen size?

Answer

Correct Answer: 125 x 125 (12 bit color depth)

Note: This Question is unanswered, help us to find answer for this one

67. Which of the following is used to specify the Push enable MIDlets?

Answer

Correct Answer: Midlet-Push-<n>

Note: This Question is unanswered, help us to find answer for this one

68. Which of the following statements regarding configuration in Java ME is incorrect?

Answer

Correct Answer: It is not subjected to compatibility tests

Note: This Question is unanswered, help us to find answer for this one

69. SMS Push is not required for JTWI.

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: CDC HotSpot Implementation

Note: This Question is unanswered, help us to find answer for this one

71. According to JTWI, what is the recommended size for a heap?

Answer

Correct Answer: 256KB

Note: This Question is unanswered, help us to find answer for this one