AND-401 Exam Dumps And Actual Questions - Killexams

Transcription

AND-401 DumpsAND-401 BraindumpsAND-401 Real QuestionsAND-401 Practice TestAND-401 dumps freeAndroidAND-401Android Application ail/AND-401

Question: 215Consider the following AndroidManifest.xml file: What is the syntax error of this file?A. The INTERNET permission must be removed.B. Tag uses-sdk must have attribute android:maxSdkVersion set.C. The activity under tag should have the android:name property.D. The tag for Activity ".Compute" should be contained inside tag.Answer: DQuestion: 216Consider the following: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 menuitems, the application did not behave as intended. Which of the following might be the cause of this problem?(Choose two)A. The developer did not set onClickListener on the menu item.B. The developer did not include "R.id.open" in the switch case.C. The developer should create onOptionsItemSelected method for each menu item.D. The developer did not override the activity method "onCreateOptionsMenu" and enflate the given menu layout.Answer: B,DQuestion: 217Which of the following is NOT true about class ListActivity?A. D. data source that can be bound in a ListActivity can be an array or Cursor holding query results.B. Its layout must be set by calling method setContentView inside onCreate.C. It contains a ListView object that can be bound to different data sets.D. A data source that can be bound in a ListActivity can be an array or Cursor holding query results.Answer: BQuestion: 218Which of the following Gradle statements adds the AppCompat library to an Android application?A. dependencies { compile "com.android.support:appcompat-v7:21.0. " }B. compile { library "com.android.support:appcompat-v7:21.0. " }C. apply plugin: æcom.android.support:appcompat-v7:21.0. Æ

D. defaultConfig { library "com.android.support:appcompat-v7:21.0. " }Answer: AQuestion: 219Which of the following statements are correct about the v7 appcompat library? (Choose two.)A. It adds support to the CardView widget.B. It adds the RecyclerView class to provide support for the RecyclerView widget.C. It adds support for the Action Bar user interface.D. It includes support for the material design user interface implementations.Answer: C,DQuestion: 220Which of the following statements are correct about the Action Bar? (Choose two.)A. It is a window feature that provides user actions and navigation modes.B. It allows applications to receives push notifications.C. It offers users a consistent interface across applications that the system dynamically adapts.D. It is a collection of Android libraries that can be included in your application for backward-compatibility.Answer: A,CQuestion: 221You are building an application that supports API level 11 and higher. Which of the following classes you mustimport if you want to add an Action Bar to your application?A. android.support.v7.app.ActionBarB. android.app.ActionBarC. android.view.ActionBarD. android.widgets.ActionBarAnswer: BQuestion: 222When the user clicks on an action item in the action bar, which of the following Activity methods does the systemcall?

A. onOptionsItemSelected( )B. onOptionsItemClicked( )C. onActionButtonSelected( )D. onActionBarItemSelected( )Answer: AQuestion: 223Which of the following statements are NOT needed to adding support for RecyclerView with CardView in yourapplication? (Choose two.)A. dependencies { compile 'com.android.support:recyclerview-v7:24.2.1' }B. dependencies { compile 'com.android.support:cardview-v7:24.2.1' }C. dependencies { compile 'com.android.support.recyclerview:design:24.2.1' }D. dependencies { compile 'com.android.support.recyclerview-v7:24.2.1' }Answer: C,DQuestion: 224Which of the following is correct dependency for adding CardView?A. dependencies {compile 'com.android.support:cardview-v7:24.2.1' }B. dependencies {compile 'com.android.support:CardView-v7:24.2.1' }C. dependencies {compile 'com.android.support:cardView-v7:24.2.1' }D. dependencies {compile 'com.android.support.cardview-v7:24.2.1' }Answer: AQuestion: 225Which of the following is the correct syntax for adding CardView to a layout file?A.B.C.D.Answer: BQuestion: 226

Which of the following options are correct about ConstraintLayoutÆs baseline constraint handle?A. Baseline constraint handles can be applied to only side constraint handles on the same axis.B. Baseline constraint handles aligns the bottom edges of views.C. "Baseline constraint handles can be applied to only side constraint handles on the same axis" and "Baselineconstraint handles aligns the bottom edges of views".D. All answers are incorrect.Answer: DQuestion: 227Which of the following methods can we call in Notification.Builder to add an action?A. setContentAction(B. setRemoteAction( )C. setAction( )D. addAction( )Answer: DQuestion: 228Which of the following functions does not belong to LocationListener?A. onLocationChangedB. onStatusChangedC. onLocationCapturedD. onProviderDisabledAnswer: C

For More exams visit https://killexams.com/vendors-exam-listKill your exam at First Attempt.Guaranteed!

Killexams.com provides free download of latest AND-401 exam questions and answers with valid braindumps in PDF file. These questions helps to get guaranteed 100% marks. Keywords: AND-401 exam dumps, AND-401 exam questions, AND-401 braindumps, AND-401 actual questions, AND-401 real questions, AND-401 practice tests Created Date: 2/14/2022 9:56:52 PM