Premium

Associate Android Developer Certification Questions and Answer (Dumps and Practice Questions)



Question : What Eclipse plugin is required to develop Android application?

 : What Eclipse plugin is required to develop Android application?
1. J2EE

2. Android Software Development Kit

3. Android Development Tools

4. Web Development Tools

Correct Answer : 3
Explanation: Android Development Tools (ADT) is a plugin for the Eclipse IDE that is designed to give you a powerful, integrated environment in which to build Android applications.

ADT extends the capabilities of Eclipse to let you quickly set up new Android projects, create an application UI, add packages based on the Android Framework API, debug your applications using the Android SDK tools, and even export signed (or unsigned) .apk files in order to distribute your application.

Developing in Eclipse with ADT is highly recommended and is the fastest way to get started. With the guided project setup it provides, as well as tools integration, custom XML editors, and debug output pane, ADT gives you an incredible boost in developing Android applications.
- See more at: https://marketplace.eclipse.org/content/android-development-tools-eclipse#sthash.Q6mA3ln5.dpuf




Question : Can create a custom view by extending class Activity.

 : Can create a custom view by extending class Activity.
1. True
2. False

Correct Answer : 2
Explanation: All of the view classes defined in the Android framework extend View. Your custom view can also extend View directly, or you can save time by extending one of the existing view subclasses, such as Button.

To allow Android Studio to interact with your view, at a minimum you must provide a constructor that takes a Context and an AttributeSet object as parameters. This constructor allows the layout editor to create and edit an instance of your view.




Question : Which of these files contains text values that you can use in your application?

 : Which of these files contains text values that you can use in your application?
1. AndroidManifest.xml

2. res/Text.xml

3. res/layout/Main.xml

4. res/values/strings.xml

Correct Answer : 4
Explanation: A string resource provides text strings for your application with optional text styling and formatting. There are three types of resources that can provide your application with strings:

String
XML resource that provides a single string.
String Array
XML resource that provides an array of strings.
Quantity Strings (Plurals)
XML resource that carries different strings for pluralization.
All strings are capable of applying some styling markup and formatting arguments. For information about styling and formatting strings, see the section about Formatting and Styling.

String
A single string that can be referenced from the application or from other resource files (such as an XML layout).

Note: A string is a simple resource that is referenced using the value provided in the name attribute (not the name of the XML file). So, you can combine string resources with other simple resources in the one XML file, under one element.

FILE LOCATION:
res/values/filename.xml
The filename is arbitrary. The element's name will be used as the resource ID.
COMPILED RESOURCE DATATYPE:
Resource pointer to a String.
RESOURCE REFERENCE:
In Java: R.string.string_name
In XML:@string/string_name


Related Questions


Question : Which of the following classes is used by Intent to transfer data between different android components?

 : Which of the following classes is used by Intent to transfer data between different android components?
1. Extras

2. Bundle

3. Parcelables

4. PendingIntent


Question : Which of the following is true about implicit intents? (Choose two)

A. They do not have a component specified
B. They have components specified to run an exact class.
C. They must include information that allows Android system to choose the best component to run.
D. They must contain extra information saved in a Bundle object.
 : Which of the following is true about implicit intents? (Choose two)
1. A,B
2. B,C
3. C,D
4. A,D
5. A,C


Question : Which of the following classes should be extended to create a custom view?

 : Which of the following classes should be extended to create a custom view?
1. View

2. ViewGroup

3. Context

4. Activity


Question : An AsyncTask can be cancelled anytime from any thread.

 : An AsyncTask can be cancelled anytime from any thread.
1. True
2. False


Question : Which of the following is NOT true about onMeasure() method of class View?

 : Which of the following is NOT true about onMeasure() method of class View?
1. It measures the view and its contents to determine the measured width and height.

2. It is invoked by measure().

3. When overriding this method, a developer must call setMeasuredDimension().

4. It takes three parameters: the height, width, and the depth of the view.


Question : Which of the following Activity life-cycle methods is invoked when a dialog is shown?

 : Which of the following Activity life-cycle methods is invoked when a dialog is shown?
1. onPause()

2. onCreate()

3. onStop()

4. onDestroy()