PrepAway - Latest Free Exam Questions & Answers

Which of the following is correct about the code above?

Consider the following code:

Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.setData(android.net.Uri.parse(“http://www.androidatc.com”));
startActivity(intent);
Which of the following is correct about the code above?

PrepAway - Latest Free Exam Questions & Answers

A.
It sends a result to a new Activity in a Bundle.

B.
It will not compile without adding the INTERNET permission the Manifest file.

C.
It starts any activity in the application that has a WebView in its layout.

D.
When it is executed, the system starts an intent resolution process to start the right Activity.

4 Comments on “Which of the following is correct about the code above?

  1. Rodrigo Digao says:

    Hi, all! The AND-401 exam has been updated, many new questions appeared in the real test, here are some new questions:

    NEW QUESTION 118
    When is the intent resolution process triggered?

    A. When the system receives an implicit intent to start an activity.
    B. When an explicit intent starts a service.
    C. When the system receives an explicit intent to start an activity.
    D. When the application calls method startAcitivyIntentResolution.

    Answer: A

    NEW QUESTION 119
    Which of the following lines of codes adds zoom controls to a WebView?

    A. webView.getSettings().setBuiltInZoomControls(true);
    B. webView.getSettings().setZoomControls(true);
    C. webView.getZoomSettings().setControls(CONTROLS.enabled);
    D. Zoom controls are included by default in WebViews.

    Answer: A

    NEW QUESTION 120
    Which of the following is true about method startActivity?

    A. It starts a new activity and destroys the previous one.
    B. It starts a new activity and sends the previous one to the background.
    C. It starts a new activity and pauses the previous one.
    D. It starts a new activity in a paused mode.

    Answer: B

    NEW QUESTION 121
    Which of the following Android View sub-classes uses the WebKit rendering engine to display web pages?

    A. PageView
    B. WebView
    C. MapView
    D. HttpClient

    Answer: B

    NEW QUESTION 122
    Which of the following best explains the Android context menus?

    A. It is a popup menu displays a list of items in a vertical list that’s anchored to the view that invoked the menu.
    B. It is a floating menu that appears when the user performs a long-click on an element. It provides actions that affect the selected content or context frame.
    C. It is the primary collection of menu items for an activity. It’s where you should place actions that have a global impact on the app, such as”Search,” “Compose email,” and “Settings”.
    D. It is a sub-menu of an options menu item.

    Answer: B

    NEW QUESTION 123
    Which of the following is true about the Dialog class? (Choose two)

    A. You can add a custom layout to a dialog using setContentView().
    B. A dialog has a life-cycle independent of the Activity.
    C. A dialog is displayed on the screen using method show().
    D. It does not have a method to access the activity that owns it.

    Answer: AC

    NEW QUESTION 124
    Which of the following is NOT true about method getWindow() of class Dialog do?

    A. It retrieves the current window for the activity.
    B. It can be used to access parts of the Windows API.
    C. It displays the dialog on the screen.
    D. It returns null if the activity is not visual.

    Answer: C

    NEW QUESTION 125
    ……

    P.S. These New AND-401 Exam Questions Were Just Updated From The Real AND-401 Exam, You Can Get The Newest AND-401 Dumps In PDF And VCE From — http://bitly.com/and-401-exam-dumps (143q)

    Good Luck !!!


Leave a Reply

Your email address will not be published. Required fields are marked *