AND-401 Actual Exam Questions

Last updated on Nov. 21, 2024.
Vendor:AndroidATC
Exam Code:AND-401
Exam Name:Android Application Development
Exam Questions:228
 

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

file Viewing page 1 out of 46 pages.
Viewing questions 1-5 out of 228 questions
Next Questions
Browse atleast 50% to increase passing rate cup
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.
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago