Sale!

AND-401 Android Application Development

$19.95

  • Passing Score: 800
  • Time Limit: 120 min
  • File Version: 6.0
  • Q&A: 228
  • Updated December 2022
Category:
Recommend this page

Description


Advance your career in Cloud Computing and get $50 off on a Udacity Nanodegrees Program

Exam Demo

AND-401 Android Application Development

QUESTION 1
What method you should override to use Android menu system?
A. onCreateOptionsMenu()
B. onCreateMenu()
C. onMenuCreated()
D. onCreateContextMenu()

Correct Answer: A

Explanation/Reference:
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
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)

Correct Answer: B

Explanation/Reference:
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
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

Correct Answer: C

Explanation/Reference:
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
During an Activity life-cycle, what is the first callback method invoked by the system?
A. onStop()
B. onStart()
C. onCreate()
D. onRestore()

Correct Answer: C

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

QUESTION 5
Which configuration file holds the permission to use the internet?
A. Layout file
B. Property file
C. Java source file
D. Manifest file

Correct Answer: D

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

Game Design

0/5 (0 Reviews)