Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
sale

Want to Unlock All Questions for this Exam?

Full Exam Access, Discussions, No Robots Checks

AndroidATC AND-401 Exam Actual Questions

The questions for AND-401 were last updated on March 28, 2024.
  • Viewing page 1 out of 46 pages.
  • Viewing questions 1-5 out of 231 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   1

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   1

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   1

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   1

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

Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...