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 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?
The INTERNET permission must be removed.
Tag uses-sdk must have attribute android:maxSdkVersion set.
The activity under tag should have the android:name property.
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)
The developer did not set onClickListener on the menu item.
The developer did not include "R.id.open" in the switch case.
The developer should create onOptionsItemSelected method for each menu item.
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?
D. data source that can be bound in a ListActivity can be an array or Cursor holding query results.
Its layout must be set by calling method setContentView inside onCreate.
It contains a ListView object that can be bound to different data sets.
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?
dependencies { compile "com.android.support:appcompat-v7:21.0.+" }
compile { library "com.android.support:appcompat-v7:21.0.+" }
apply plugin: æcom.android.support:appcompat-v7:21.0.+Æ
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.)
It adds support to the CardView widget.
It adds the RecyclerView class to provide support for the RecyclerView widget.
It adds support for the Action Bar user interface.
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.)
It is a window feature that provides user actions and navigation modes.
It allows applications to receives push notifications.
It offers users a consistent interface across applications that the system dynamically adapts.
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?
android.support.v7.app.ActionBar
android.app.ActionBar
android.view.ActionBar
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?
onOptionsItemSelected( )
onOptionsItemClicked( )
onActionButtonSelected( )
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.)
dependencies { compile 'com.android.support:recyclerview-v7:24.2.1' }
dependencies { compile 'com.android.support:cardview-v7:24.2.1' }
dependencies { compile 'com.android.support.recyclerview:design:24.2.1' }
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?
dependencies {compile 'com.android.support:cardview-v7:24.2.1' }
dependencies {compile 'com.android.support:CardView-v7:24.2.1' }
dependencies {compile 'com.android.support:cardView-v7:24.2.1' }
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?
Baseline constraint handles can be applied to only side constraint handles on the same axis.
Baseline constraint handles aligns the bottom edges of views.
"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".
All answers are incorrect.
Answer: D
Question: 227
Which of the following methods can we call in Notification.Builder to add an action?
setContentAction(
setRemoteAction( )
setAction( )
addAction( )
Answer: D
Question: 228
Which of the following functions does not belong to LocationListener?
onLocationChanged
onStatusChanged
onLocationCaptured
onProviderDisabled
Answer: C