Leads4pass > Android > Android Certifications > AND-801 > AND-801 Online Practice Questions and Answers

AND-801 Online Practice Questions and Answers

Questions 4

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.

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

Which of the following is not an Activity lifecycle call-back method?

A. onStart

B. onCreate

C. onPause

D. onBackPressed

Buy Now
Questions 7

What is the name of the folder that contains the R.java file?

A. src

B. res

C. bin

D. gen

Buy Now
Questions 8

Which of the following Activity methods is invoked when the user clicks on an options menu item?

A. onItemClicked

B. onItemSelected

C. onOptionsItemClicked

D. onOptionsItemSelected

Buy Now
Questions 9

In Android Studio 3.0 and higher, a checkbox is available to drag-and-drop from the palette panel.

A. False

B. True

Buy Now
Questions 10

The first image below includes an Android code to generate AlertDialog which is illustrated in the second image. The last line of the code includes "xxxxxxx". Which of the following choices is the correct line of code to replace "xxxxxxx" for the purpose of showing this AlertDialog?

A. SaveAlert.show( )

B. Save-Activity( )

C. Start.activity ( )

D. savealert.show( )

Buy Now
Questions 11

You have an Android application that consists of two activities (MainActivity and SecondActivity) and you

want to pass data in text field (ID: FirstNameJD) of MainAcitivity to SecondActivity. The passed data will appear in SecondActivity inside a TextView widget with Id: HelloMessageJD. You will use Intent to pass this data from MainActivity to SecondActivity. The Following two images include the Android code which will be written in MainActivity.kt and SecondActivity.kt files. Your data will not pass from MainActivity to SecondActivity due to a mistake in the code in SecodActivity.kt. Which of the following choices is a correct solution to make this app run correctly?

A. Add startActivity(intent) to Secondryactivity.kt

B. Replace getStringExtra("name") with putSiringExtra( "name") in SecondActiy.kt file

C. You need to add an if statement to solve this issue in the two files

D. Replace ''name'' with ''pass'' in intent.getSt4ingExtra( ''name'')

Buy Now
Questions 12

The following Android code displays a Toast message. Which of the following is the correct parameter to replace Toast.xyz in this line of code? Toast.makeText(this,"Message saved as draff ,Toast.xyz).show()

A. Toast.sec.4

B. Toasst.shortTime

C. ToastiLEMGTH_LONG

D. Toast. Time.4s

Buy Now
Questions 13

You can embed a web browser inside your application using the WebView class.

A. True

B. False

Buy Now
Exam Code: AND-801
Exam Name: Android Application Development v8
Last Update: Jun 16, 2026
Questions: 174
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99