Exit demo AND-801 Android Application Development v8 PDF format · free preview

Android AND-801 - Questions & Answers

Free preview · every answer includes a full explanation

Product page: https://prepkeys.com/and-801.html

Question 1
Single choice

Which of the following is required to allow the Android Developer Tools to interact with your view?

A.

Provide a constructor that takes a Context and an AttributeSet object as parameters.

B.

Provide a constructor that takes a Context object as parameter.

C.

Extend class View.

D.

Override method onDraw() of class View.

Question 2
Single choice

What does the src folder contain?

A.

Image and icon files.

B.

XML resource files.

C.

The application manifest file.

D.

Java source code files.

Question 3
Single choice

Which of the following methods is called in an Activity when another activity gets into the foreground?

A.

onStop()

B.

onPause()

C.

onDestroy()

D.

onExit()

Question 4
Single choice

Which of the following Activity life-cycle methods is called once the activity is no longer visible?

A.

onStop

B.

onPause

C.

onDestroy

D.

onHide

Question 5
Single choice

Which manifest file permission you should add to allow your application to read the device's address book?

A.

READ_ADDRESS_DATA

B.

READ_PHONE_STATE

C.

READ_PHONE_CONTACTS

D.

READ_CONTACTS

Question 6
Single choice

Which of the following statements is correct about SQLite?

A.

It is an object database.

B.

It is client-server format.

C.

It is possible to create and access a database by using SQLOpenHelper.

D.

It can be accessed by other applications through ContentProvider.

Question 7
Single choice

In which Activity life-cycle method you should do all of your normal static set up such as: creating views and bind data to lists?

A.

onResume()

B.

onStart()

C.

onCreate()

D.

onPause()

Question 8
Single choice

Which of the following methods updates a ListView when an element is added to the data set?

A.

notify()

B.

notifyAll()

C.

notifyDataSetChanged()

D.

notifyDataSetInvalidate()

Question 9
Single choice

Which of the following best explains the Android context menus?

A.

It is a popup menu displays a list of items in a vertical list that's anchored to the view that invoked the menu.

B.

It is a floating menu that appears when the user performs a long-click on an element. It provides actions that affect the selected content or context frame.

C.

It is the primary collection of menu items for an activity. It's where you should place actions that have a global impact on the app, such as "Search," "Compose email," and "Settings".

D.

It is a sub-menu of an options menu item.

Question 10
Single choice

What does the Android project folder "res/" contain?

A.

Java Activity classes

B.

Resource files

C.

Java source code

D.

Libraries

Showing 10 of 174 questions · Unlock the full set