AND-401

Review 228 AND-401 practice questions with answer explanations and community insights.

Question 1

What method you should override to use Android menu system?

  1. onCreateOptionsMenu()
  2. onCreateMenu()
  3. onMenuCreated()
  4. onCreateContextMenu()

Question 2

What Activity method you use to retrieve a reference to an Android view by using the id attribute of a resource XML?

  1. findViewByReference(int id);
  2. findViewById(int id)
  3. retrieveResourceById(int id)
  4. findViewById(String id)

Question 3

Which of the following is not an Android component (i.e. a point from which the system can enter your application)?

  1. Service
  2. Activity
  3. Layout
  4. Content Provider

Question 4

During an Activity life-cycle, what is the first callback method invoked by the system?

  1. onStop()
  2. onStart()
  3. onCreate()
  4. onRestore()

Question 5

Which configuration file holds the permission to use the internet?

  1. Layout file
  2. Property file
  3. Java source file
  4. Manifest file
We are moving to a new platform

CertificationTest is being migrated. Some pages may be slow or briefly unavailable; everything will be back to normal within a few hours. If you run into any issue, email support@certificationtest.net.