1. Question: Consider the XML fragment below, which is taken from one of the files in an Android project:
    <MyElement xmlns:"http://schemas.androd.com/apk/res/android"
            android:layout_width = "fill_parent"
            android:layout_height = "fill_parent"
            android:text = "Some Text">
    </MyElement>
    Which of the following are true about the XML fragment above?

    A
    It is taken from the manifest xml file of the Android project.

    B
    It is taken from an XML file used to define a view.

    C
    It is taken from the package file (.apk) of the Android project.

    D
    The xmlns: attribute is a compulsory attribute.

    E
    If this is not the outer most tag in the XML file then it need not contain the xmlns: attribute.

    F
    MyElement should be the name of a class derived, directly or indirectly, from the View class.

    Note: Not available
    1. Report
  2. Question: Which of the following fields of the Message class should be used to store custom message codes about the Message?

    A
    tag

    B
    what

    C
    arg1

    D
    arg2

    E
    userData

    Note: Not available
    1. Report
  3. Question: Suppose Screen1 is the main screen of an Android application MyAndroid. Now if another screen, Screen2 has to be opened from Screen1, then which of the following are true?

    A
    Screen2 has to be a part of MyAndroid.

    B
    Screen2 can exist in any other Android application installed on the device.

    C
    Screen2 will always be launched asynchronously.

    D
    Screen2 can be launched synchronously.

    E
    Screen2 can return a result code to Screen1 if launched with startActivity.

    F
    Screen2 can return a result code to Screen1 if launched with startActivityForResult.

    Note: Not available
    1. Report
  4. Question: Select the two function calls that can be used to start a Service from your Android application?

    A
    bindService

    B
    startService

    C
    runService

    D
    startActivity

    Note: Not available
    1. Report
  5. Question: Which of the following Integrated Development Environments can be used for developing software applications for the Android platform?

    A
    Android IDE

    B
    Eclipse

    C
    Visual Studio 2005

    D
    Visual Studio 2008

    Note: Not available
    1. Report
  6. Question: Which of the following can you use to display an HTML web page in an Android application?

    A
    WebBrowser

    B
    BrowserView

    C
    WebView

    D
    Browser

    E
    HtmlView

    Note: Not available
    1. Report
  7. Question: Consider the following snippet of code:
    <font size =2>
    @Override
    protected void onStop
    {
    Super.onStop();
    SharedPreferences setting = getSharedPreferences("MyPrefs", 0);
    SharedPreferences.Editor editor = settings.edit();
    editor.putBoolean("MyBool", true);
    
    <some more code here>
    }
    
    Which of the following should be used <some more code here>?
    </font>

    A
    editor.save(); editor.close();

    B
    editor.save(); editor.finish();

    C
    editor.commit();

    D
    editor.save();

    E
    editor.close();

    F
    editor.finish();

    Note: Not available
    1. Report
  8. Question: What is "Android-Positron"?

    A
    A command line tool to create Android project files.

    B
    A framework to create unit tests for Android projects.

    C
    A resource editor to create user interface for Android applications.

    D
    A tool to generate Android byte code from .class files.

    E
    An emulator to execute and debug Android projects.

    Note: Not available
    1. Report
  9. Question: Which of the following can you use to add items to the screen menu?

    A
    Activity.onCreate

    B
    Activity.onCreateOptionsMenu

    C
    Constructor of the Activity class.

    D
    Activity.onCreateMenu

    E
    Activity.onStart

    F
    Activity.onPrepareOptionsMenu

    Note: Not available
    1. Report
  10. Question: Which of the following is not a life-cycle methods of an Activity that can be implemented to perform various operations during the lifetime of an Activity?

    A
    onCreate

    B
    onInit

    C
    onCompleteThaw

    D
    onRestart

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd