Free AND-401 Exam Braindumps (page: 7)

Page 6 of 58

What does this code do?

Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW); intent.setData(android.net.Uri.parse("http://www.androidatc.com"));
startActivity(intent);

  1. Starts a sub-activity
  2. Starts a service
  3. Sends results to another activity.
  4. Starts an activity using an implicit intent.

Answer(s): D


Reference:

Android ATC Self Study Guide http://www.androidatc.com/pages-19/Self-Study



Which of the following is a Java call-back method invoked when a view is clicked?

  1. Detector
  2. OnTapListener
  3. OnClickDetector
  4. OnClickListener

Answer(s): D


Reference:

Android ATC Self Study Guide http://www.androidatc.com/pages-19/Self-Study



Which of the following is not an Activity lifecycle call-back method?

  1. onStart
  2. onCreate
  3. onPause
  4. onBackPressed

Answer(s): D


Reference:

Android ATC Self Study Guide http://www.androidatc.com/pages-19/Self-Study



Which method is used to close an activity?

  1. Destroy()
  2. Finish()
  3. Stop()
  4. Close()

Answer(s): B


Reference:

Android ATC Self Study Guide http://www.androidatc.com/pages-19/Self-Study






Post your Comments and Discuss Android AND-401 exam with other Community members: