Pass the Android Android Certified Trainer AND-801 Questions and answers with CertsForce

Viewing page 1 out of 1 pages
Viewing questions 1-10 out of questions
Questions # 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


Questions # 2:

Assume you are developing an Android app which consists of two activities, MainActivity and SecondActivity. The following image includes part of MainActivity code. This file includes a button that has id "Mybutton". What does the following code snippet do if it is executed after the user taps on the button (id: Mybutton)?

Question # 2

Options:

A.

Opens SecondActivity layout.


B.

Closes the app. then opens the phone's applications list


C.

Re-opens the same MainActivity layout.


D.

Moves "Hello" message to Second Activity layout


Questions # 3:

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?

Question # 3

Options:

A.

Notification Title( )


B.

Notification_setTitle ( )


C.

setTitle ( )


D.

setcontentTitle


Questions # 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?

Question # 4

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.


Questions # 5:

Check the following image, and then select which of the following choices is the correct Android method to add a marker on Google maps?

Question # 5

Options:

A.

GoogleMap.MARkerlist


B.

GoogleMap.addMarker


C.

GoogleMap-Markerpost


D.

GoogleMap-GoogleMakerAdd


Questions # 6:

The code snippet below displays a menu which is illustrated in another image. The emulator image displays a menu that contains three items, but in the code file none of these menu items are available. Where do these items come from?

Question # 6

Options:

A.

This file will not show any menu items.


B.

As illustrated in the code, these items are already added in the resource the called menu.xml and this file exists m a container called menu.


C.

These menu items are already added to AndroidManitfest,xml file.


D.

These items are added in activity_main.xml file.


Questions # 7:

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?

Question # 7

Options:

A.

Top middle (center).


B.

Top left.


C.

Top right.


D.

Right middle (center).


Questions # 8:

Which of the following choices is the main role of the Preview button which is illustrated in the red circle of the vertical Android Studio tool bar?

Question # 8

Options:

A.

It shows the activity blue print preview mode.


B.

It shows the Java or Kotlin code of an activity.


C.

It shows the activity layout in print review.


D.

It shows the activity layout in text (XML) and design mode at the same time.


Questions # 9:

The following Android code locates Toronto CN tower on Google map using on the latitude and longitude coordinates. Which of the following choices is the correct choice to show your Google map in the zoom-in state?

Question # 9

Options:

A.

Replace: GMap.moveCameralCameraaUpdateFactory.newLatLng(cnToiwf)) with: GMap.moveCameta{CameraUpdaieFaclory.newtalLnoZoom(cnTowerT16f)0


B.

We can only show a position on Google map and we don't have permission to modify the zoom level


C.

Change the coordinates value to get the zoom level what we need


D.

Add the following code: GoogleMapZoom(60)%


Viewing page 1 out of 1 pages
Viewing questions 1-10 out of questions