Certbus > 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 is the base class of all UI components?

A. ListView

B. Layout

C. View

D. ViewGroup

Browse 174 Q&As
Questions 5

What is the parent class of all Activity widgets?

A. ViewGroup

B. Layout

C. View

D. Widget

Browse 174 Q&As
Questions 6

Which of the following are primary pieces of information that are required to define in an implicit Intent?

A. An action to be performed and data to operate on.

B. An action to be performed and a category for additional information.

C. A Bundle for extra data.

D. A category of additional information and data to operate on.

Browse 174 Q&As
Questions 7

What does this code do?

Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW); intent.setData(android.net.Uri.parse("http://www.androidatc.com")); startActivity(intent);

A. Starts a sub-activity.

B. Starts a service.

C. Sends results to another activity.

D. Starts an activity using an implicit intent.

Browse 174 Q&As
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

Browse 174 Q&As
Questions 9

If your application is throwing exception android.content.ActivityNotFoundException, how to fix it?

A. Create a new activity Java sub-class

B. Rename your activity

C. ISO Create the activity layout

D. Add the activity to the AndroidManifest

Browse 174 Q&As
Questions 10

What is not true about the AndroidManifest.xml file?

A. It declares the views used within the application.

B. It declares user permissions the application requires.

C. It declares application components.

D. It declares hardware and software features used within the application.

Browse 174 Q&As
Questions 11

Which of the following is not a valid Android resource file name?

A. mylayout.xml

B. myLayout.xml

C. my_layout.xml

D. mylayout1.xml

Browse 174 Q&As
Questions 12

What does the following code achieve?

Intent intent = new Intent(FirstActivity.this, SecondActivity.class); startActivityForResult(intent);

A. Starts a browser activity

B. Starts a sub-activity

C. Starts an activity service

D. Sends results to another activity

Browse 174 Q&As
Questions 13

What Activity method you use to retrieve a reference to an Android view by using the id attribute of a resource XML?

A. findViewByReference(int id)

B. findViewById(int id)

C. retrieveResourceById(int id)

D. findViewById(String id)

Browse 174 Q&As
Questions 14

Which of the following is NOT true about method getWindow() of class Dialog do?

A. It retrieves the current window for the activity.

B. It can be used to access parts of the Windows API.

C. It displays the dialog on the screen.

D. It returns null if the activity is not visual.

Browse 174 Q&As
Questions 15

Which of the following is NOT true about onMeasure() method of class View?

A. It measures the view and its contents to determine the measured width and height.

B. It is invoked by measure().

C. The When overriding this method, a developer must call setMeasuredDimension().

D. It takes three parameters: the height, width, and the depth of the view.

Browse 174 Q&As
Questions 16

What is the main role of adding the following permission tag to AndroidManifest.xml file in an Android app?

A. Allow the Android app to download Google map database.

B. Allow this app to snare internal Google map database with another applications.

C. Allow the Android app to access the user's precise (exact) location.

D. This tag is not enough, you still need to add another tag which includes the user name and password to upload the user's location coordinates to Google map database.

Browse 174 Q&As
Questions 17

Which of the below choices is the best answer to fill the empty space in the following sentence? If you want to give all text widgets in an app the same format such as font color, font size, and font family, you should add the style attribute to the TextView XML tags in layout file and set the attribute value to the same style name. You should define that style by adding a new style tag "style name-style_name" inside...............................

A. AadroiddManifest-xml file

B. activity_main.xml file

C. stytes.xml file

D. MainActivity.java or MainActivity.kt file

Browse 174 Q&As
Questions 18

As an Android developer, to change the font size of a text in Android layout, you should use attribute

"android:textSize".

Which of the following choices is the recommended syntax to change the font size to 18?

A. android:textSize=18sd"

B. androtd:textSize="18sp"

C. android:textSize=-"18point"

D. android:TextSize=18dp"

Browse 174 Q&As
Exam Code: AND-801
Exam Name: Android Application Development v8
Last Update: Apr 18, 2024
Questions: 174 Q&As

PDF

$45.99

VCE

$49.99

PDF + VCE

$59.99