Latest AND-401 Practice Tests with Actual Questions

Get Complete pool of questions with Premium PDF and Test Engine

Exam Code : AND-401
Exam Name : Android Application Development
Vendor Name : "Android"







AND-401 Dumps AND-401 Braindumps

AND-401 Real Questions AND-401 Practice Test AND-401 Actual Questions


killexams.com


Android


AND-401


Android Application Development


https://killexams.com/pass4sure/exam-detail/AND-401


Question: 215


Consider the following AndroidManifest.xml file: What is the syntax error of this file?


  1. The INTERNET permission must be removed.

  2. Tag uses-sdk must have attribute android:maxSdkVersion set.

  3. The activity under tag should have the android:name property.

  4. The tag for Activity ".Compute" should be contained inside tag.




Answer: D



Question: 216 Consider 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 menu items, the application did not behave as intended. Which of the following might be the cause of this problem? (Choose two)


  1. The developer did not set onClickListener on the menu item.

  2. The developer did not include "R.id.open" in the switch case.

  3. The developer should create onOptionsItemSelected method for each menu item.

  4. The developer did not override the activity method "onCreateOptionsMenu" and enflate the given menu layout.




Answer: B,D



Question: 217


Which of the following is NOT true about class ListActivity?


  1. D. data source that can be bound in a ListActivity can be an array or Cursor holding query results.

  2. Its layout must be set by calling method setContentView inside onCreate.

  3. It contains a ListView object that can be bound to different data sets.

  4. A data source that can be bound in a ListActivity can be an array or Cursor holding query results.




Answer: B



Question: 218


Which of the following Gradle statements adds the AppCompat library to an Android application?


  1. dependencies { compile "com.android.support:appcompat-v7:21.0.+" }

  2. compile { library "com.android.support:appcompat-v7:21.0.+" }

  3. apply plugin: æcom.android.support:appcompat-v7:21.0.+Æ

  4. defaultConfig { library "com.android.support:appcompat-v7:21.0.+" }

    Answer: A



Question: 219


Which of the following statements are correct about the v7 appcompat library? (Choose two.)


  1. It adds support to the CardView widget.

  2. It adds the RecyclerView class to provide support for the RecyclerView widget.

  3. It adds support for the Action Bar user interface.

  4. It includes support for the material design user interface implementations.




Answer: C,D



Question: 220


Which of the following statements are correct about the Action Bar? (Choose two.)


  1. It is a window feature that provides user actions and navigation modes.

  2. It allows applications to receives push notifications.

  3. It offers users a consistent interface across applications that the system dynamically adapts.

  4. It is a collection of Android libraries that can be included in your application for backward-compatibility.




Answer: A,C



Question: 221


You are building an application that supports API level 11 and higher. Which of the following classes you must import if you want to add an Action Bar to your application?


  1. android.support.v7.app.ActionBar

  2. android.app.ActionBar

  3. android.view.ActionBar

  4. android.widgets.ActionBar




Answer: B



Question: 222


When the user clicks on an action item in the action bar, which of the following Activity methods does the system call?

  1. onOptionsItemSelected( )

  2. onOptionsItemClicked( )

  3. onActionButtonSelected( )

  4. onActionBarItemSelected( )




Answer: A



Question: 223


Which of the following statements are NOT needed to adding support for RecyclerView with CardView in your application? (Choose two.)


  1. dependencies { compile 'com.android.support:recyclerview-v7:24.2.1' }

  2. dependencies { compile 'com.android.support:cardview-v7:24.2.1' }

  3. dependencies { compile 'com.android.support.recyclerview:design:24.2.1' }

  4. dependencies { compile 'com.android.support.recyclerview-v7:24.2.1' }




Answer: C,D



Question: 224


Which of the following is correct dependency for adding CardView?


  1. dependencies {compile 'com.android.support:cardview-v7:24.2.1' }

  2. dependencies {compile 'com.android.support:CardView-v7:24.2.1' }

  3. dependencies {compile 'com.android.support:cardView-v7:24.2.1' }

  4. dependencies {compile 'com.android.support.cardview-v7:24.2.1' }




Answer: A



Question: 225


Which of the following is the correct syntax for adding CardView to a layout file?


A.

B.

C.

D.




Answer: B



Question: 226

Which of the following options are correct about ConstraintLayoutÆs baseline constraint handle?


  1. Baseline constraint handles can be applied to only side constraint handles on the same axis.

  2. Baseline constraint handles aligns the bottom edges of views.

  3. "Baseline constraint handles can be applied to only side constraint handles on the same axis" and "Baseline constraint handles aligns the bottom edges of views".

  4. All answers are incorrect.




Answer: D



Question: 227


Which of the following methods can we call in Notification.Builder to add an action?


  1. setContentAction(

  2. setRemoteAction( )

  3. setAction( )

  4. addAction( )




Answer: D



Question: 228


Which of the following functions does not belong to LocationListener?


  1. onLocationChanged

  2. onStatusChanged

  3. onLocationCaptured

  4. onProviderDisabled




Answer: C