Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
Location Chicago IL, USA

AndroidATC AND-401 Exam Actual Questions

The questions for AND-401 were last updated at April 5, 2021.
  • Viewing page 1 out of 46 pages.
  • Viewing questions 1-5 out of 228 questions

Topic 1 - Single Topic

Question #1 Topic 1

What method you should override to use Android menu system?

  • A. onCreateOptionsMenu()
  • B. onCreateMenu()
  • C. onMenuCreated()
  • D. onCreateContextMenu()
Reveal Solution Hide Solution   Discussion  

Correct Answer: A
To specify the options menu for an activity, override onCreateOptionsMenu() (fragments provide their own onCreateOptionsMenu() callback).
References:
http://developer.android.com/guide/topics/ui/menus.html

Question #2 Topic 1

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

  • A. findViewByReference(int id);
  • B. findViewById(int id)
  • C. retrieveResourceById(int id)
  • D. findViewById(String id)
Reveal Solution Hide Solution   Discussion  

Correct Answer: B
The findViewById(int id) method looks for a child view with the given id.
References:
http://developer.android.com/reference/android/view/View.html

Question #3 Topic 1

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

  • A. Service
  • B. Activity
  • C. Layout
  • D. Content Provider
Reveal Solution Hide Solution   Discussion  

Correct Answer: C
Here are the four types of app components: Activities, Services, Content providers, and Broadcast receivers.
References:
http://developer.android.com/guide/components/fundamentals.html

Question #4 Topic 1

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

  • A. onStop()
  • B. onStart()
  • C. onCreate()
  • D. onRestore()
Reveal Solution Hide Solution   Discussion  

Correct Answer: C
References:
Android ATC Self Study Guide http://www.androidatc.com/pages-19/Self-Study

Question #5 Topic 1

Which configuration file holds the permission to use the internet?

  • A. Layout file
  • B. Property file
  • C. Java source file
  • D. Manifest file
Reveal Solution Hide Solution   Discussion  

Correct Answer: D
References:
Android ATC Self Study Guide http://www.androidatc.com/pages-19/Self-Study


SaveCancel