Downloadable Exam Engine with regard to AND-401,Whatsoever key points to the exam are generally included in the AND-401 training materials at Examcollection. You are able to download the Android simulated tests with regard to free. The actual professional writers of Examcollection ensure to existing the related and precise AND-401 practice questions in the training materials. All of us provide the Android questions and answers in Pdf file format. They are reputable and most up-to-date Android tests.
2021 Oct AND-401 braindumps
Q21. 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
Answer: D
Q22. Which of the following a Notification object must contain? (Choose three)
A. A small icon
B. A detail text.
C. A notification sound
D. A title
Answer: A,B,D
Q23. Which of the following is incorrect about intents?
A. They can be used to start an Activity.
B. They can be used to start a service.
C. They can be used to start database insertion.
D. They can be used to start a dialog-themed activity.
Answer: C
Q24. What does the Android project folder “res/” contain?
A. Java Activity classes
B. Resource files
C. Java source code
D. Libraries
Answer: B
Q25. An AsyncTask can be cancelled anytime from any thread.
A. True
B. False
Answer: A
Abreast of the times AND-401 free practice test:
Q26. What does the following line of code achieve?
Intent intent = new Intent(FirstActivity.this, SecondActivity.class );
A. Creates a hidden Intent.
B. Creates an implicit Intent.
C. Create an explicit Intent.
D. Starts an activity.
Answer: D
Q27. 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.
Answer: D
Q28. Consider the following the code :
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.game_menu, menu);
return true;
}
Which of the following is true about the code above?
A. The code is auto generated and should not be edited.
B. This method handles clicks and assign actions to menu items.
C. This function inflates an XML file in the res/menu folder into menu items.
D. This method inflates an XML file in the res/layout folder into layout.
Answer: C
Q29. Consider the following :
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/create_new"
android:title="@string/create_new" />
<item android:id="@+id/open"
android:title="@string/open" />
</menu>
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.create_new:
newFile();
return true
default:
return super.onOptionsItemSelected(item);
}
}
Upon clicking on one of the menu items, the application did not behave as intended. Which of the following might be the cause of this problem?
A. The developer did not set onClickListener on the menu item.
B. The developer did not include a case that corresponds to the menu item in method onOptionsItemSelected.
C. The developer should create onOptionsItemSelected method for each menu item.
D. The developer should add the item to the menu resource file.
Answer: B
Q30. 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.
Answer: A