Leads4pass > Android > Android Certified Trainer > AND-801 > AND-801 Online Practice Questions and Answers

AND-801 Online Practice Questions and Answers

Questions 4

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()

Buy Now
Questions 5

Which method should you use to start a sub-activity?

A. startActivity(Intent intent)

B. startActivityForResult(Intent intent)

C. startService(Intent intent)

D. startSubActivity(Intent intent)

Buy Now
Questions 6

Consider the following code :

@Override

public void onCreateContextMenu(ContextMenu menu, View v,

ContextMenuInfo menuInfo) {

super.onCreateContextMenu(menu, v, menuInfo);

menu.setHeaderTitle("Menu");

AdapterContextMenuInfo cmi = (AdapterContextMenuInfo) menuInfo;

menu.add(1, cmi.position, 0, "Open file");

menu.add(2, cmi.position, 0, "Save file");}

Which of the following best explains the code above?

A. The code inflates an xml file into menu items.

B. The code creates menu items for context menu programmatically.

C. The code assign actions to menu items.

D. The code Opens a menu resource file, modifies it, and saves the changes.

Buy Now
Questions 7

Which of the following is a rule that developers must always follow when writing multi- threaded Android applications? (Choose two)

A. A worker thread must not be created from inside the UI thread.

B. Each UI thread must not create more than one worker thread.

C. The UI thread must never be blocked.

D. The Android UI must not be accessed from outside the UI thread.

Buy Now
Questions 8

You can create a custom view by extending class:

A. android.widget.View

B. android.widget.LinearLayout

C. android.view.View

D. android.content.Context

Buy Now
Questions 9

Which of the following attributes is used to set an activity screen to landscape orientation?

A. screenorientation = landscape

B. screenOrientation="landscape"

C. android:ScreenOrientation="landscape"

D. android:screenOrientation="landscape"

Buy Now
Questions 10

Which of following is incorrect about the Toast class?

A. You cannot set a custom layout for a Toast.

B. You cannot set a custom layout for a Toast There is no need to close or hide a Toast, since it closes automatically.

C. There is no need to close or hide a Toast, since it closes automatically.

D. A Toast is displayed for only one of the following periods: Toast.LENGHT_SHORT or Toast.LENGTH_LONG.

Buy Now
Questions 11

Which of the following is NOT true about class DefaultHttpClient?

A. It supports HTTPS

B. It supports streaming uploads and downloads

C. It is only supported on Android versions 2.2 and older

D. It is Andriod's default implementation of an HTTP client

Buy Now
Questions 12

What does the following code snippet do?

A. Creates a FrameView.

B. Creates a Cradview.

C. Creates a RecyclerView.

D. Creates a ListView-

Buy Now
Questions 13

Google Maps allows web sites, mobile apps and other media to connect to its database and import it in JSON format. This web connection between Google maps database and mobile applications are done through https connections and using an API key.

A. False

B. True

Buy Now
Exam Code: AND-801
Exam Name: Android Application Development v8
Last Update: Nov 18, 2024
Questions: 174
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99