Labour Day Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70percent

Android AND-801 Android Application Development v8 Exam Practice Test

Demo: 6 questions
Total 45 questions

Android Application Development v8 Questions and Answers

Question 1

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

Options:

A.

Toast.sec.4

B.

Toasst.shortTime

C.

ToastiLEMGTH_LONG

D.

Toast. Time.4s

Question 2

Check the following image which includes Android code. In this code when the app user clicks the button, the user will get a toast message which states "Hello Android ATC". After executing the code, where on the android device screen will the toast message appear?

Options:

A.

Top middle (center).

B.

Top left.

C.

Top right.

D.

Right middle (center).

Question 3

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?

Options:

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

Question 4

The following images include an Android code for SeekBar (id: MyseekBar) and one state of its operation. What does "Result" represent in this code?

Options:

A.

Result is theseekbar id.

B.

No any role for Result in this code.

C.

Result is the id of TextView widget which will show the result messages of SeekBar operation.

D.

Result is the maximum value of SeekBar steps that can be moved.

Question 5

The following image displays an Android notification labeled with the responsible to configure each part of it. Which of the following choices sets the Android notification title?

Options:

A.

Notification Title( )

B.

Notification_setTitle ( )

C.

setTitle ( )

D.

setcontentTitle

Question 6

If your Android application creates a SQLite database, which of the following is the default directory to save this database file?

Options:

A.

/database/SQLite_Data/APP_NAME/databases/DATABASE_FILE.

B.

/database/data/APP_NAME/databases/DATABASE_FILE_SQLAPP.

C.

/database/data/APP_NAME/databases/DATABASE_FILE.

D.

/dataSQL/data/APP_NAME/databases/DATABASE_FILE.

Demo: 6 questions
Total 45 questions