AND-401 Dumps AND-401 Braindumps AND-401 Real Questions AND-401 Practice Test AND-401 Actual Questions 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? 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: 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) 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,D Question: 217 Which 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: B Question: 218 Which 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: A Question: 219 Which 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,D Question: 220 Which 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,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? A. android.support.v7.app.ActionBar B. android.app.ActionBar C. android.view.ActionBar D. 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? A. onOptionsItemSelected( ) B. onOptionsItemClicked( ) C. onActionButtonSelected( ) D. 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.) 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,D Question: 224 Which 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: 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? 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 "Baseline constraint handles aligns the bottom edges of views". D. All answers are incorrect. Answer: D Question: 227 Which of the following methods can we call in Notification.Builder to add an action? A. setContentAction( B. setRemoteAction( ) C. setAction( ) D. addAction( ) Answer: D Question: 228 Which of the following functions does not belong to LocationListener? A. onLocationChanged B. onStatusChanged C. onLocationCaptured D. onProviderDisabled Answer: C 6$03/( 48(67,216 7KHVH TXHVWLRQV DUH IRU GHPR SXUSRVH RQO\ )XOO YHUVLRQ LV XS WR GDWH DQG FRQWDLQV DFWXDO TXHVWLRQV DQG DQVZHUV .LOOH[DPV FRP LV DQ RQOLQH SODWIRUP WKDW RIIHUV D ZLGH UDQJH RI VHUYLFHV UHODWHG WR FHUWLILFDWLRQ H[DP SUHSDUDWLRQ 7KH SODWIRUP SURYLGHV DFWXDO TXHVWLRQV H[DP GXPSV DQG SUDFWLFH WHVWV WR KHOS LQGLYLGXDOV SUHSDUH IRU YDULRXV FHUWLILFDWLRQ H[DPV ZLWK FRQILGHQFH +HUH DUH VRPH NH\ IHDWXUHV DQG VHUYLFHV RIIHUHG E\ .LOOH[DPV FRP $FWXDO ([DP 4XHVWLRQV .LOOH[DPV FRP SURYLGHV DFWXDO H[DP TXHVWLRQV WKDW DUH H[SHULHQFHG LQ WHVW FHQWHUV 7KHVH TXHVWLRQV DUH XSGDWHG UHJXODUO\ WR HQVXUH WKH\ DUH XS WR GDWH DQG UHOHYDQW WR WKH ODWHVW H[DP V\OODEXV %\ VWXG\LQJ WKHVH DFWXDO TXHVWLRQV FDQGLGDWHV FDQ IDPLOLDUL]H WKHPVHOYHV ZLWK WKH FRQWHQW DQG IRUPDW RI WKH UHDO H[DP ([DP 'XPSV .LOOH[DPV FRP RIIHUV H[DP GXPSV LQ 3') IRUPDW 7KHVH GXPSV FRQWDLQ D FRPSUHKHQVLYH FROOHFWLRQ RI TXHVWLRQV DQG DQVZHUV WKDW FRYHU WKH H[DP WRSLFV %\ XVLQJ WKHVH GXPSV FDQGLGDWHV FDQ HQKDQFH WKHLU NQRZOHGJH DQG LPSURYH WKHLU FKDQFHV RI VXFFHVV LQ WKH FHUWLILFDWLRQ H[DP 3UDFWLFH 7HVWV .LOOH[DPV FRP SURYLGHV SUDFWLFH WHVWV WKURXJK WKHLU GHVNWRS 9&( H[DP VLPXODWRU DQG RQOLQH WHVW HQJLQH 7KHVH SUDFWLFH WHVWV VLPXODWH WKH UHDO H[DP HQYLURQPHQW DQG KHOS FDQGLGDWHV DVVHVV WKHLU UHDGLQHVV IRU WKH DFWXDO H[DP 7KH SUDFWLFH WHVWV FRYHU D ZLGH UDQJH RI TXHVWLRQV DQG HQDEOH FDQGLGDWHV WR LGHQWLI\ WKHLU VWUHQJWKV DQG ZHDNQHVVHV *XDUDQWHHG 6XFFHVV .LOOH[DPV FRP RIIHUV D VXFFHVV JXDUDQWHH ZLWK WKHLU H[DP GXPSV 7KH\ FODLP WKDW E\ XVLQJ WKHLU PDWHULDOV FDQGLGDWHV ZLOO SDVV WKHLU H[DPV RQ WKH ILUVW DWWHPSW RU WKH\ ZLOO UHIXQG WKH SXUFKDVH SULFH 7KLV JXDUDQWHH SURYLGHV DVVXUDQFH DQG FRQILGHQFH WR LQGLYLGXDOV SUHSDULQJ IRU FHUWLILFDWLRQ H[DPV 8SGDWHG &RQWHQW .LOOH[DPV FRP UHJXODUO\ XSGDWHV LWV TXHVWLRQ EDQN DQG H[DP GXPSV WR HQVXUH WKDW WKH\ DUH FXUUHQW DQG UHIOHFW WKH ODWHVW FKDQJHV LQ WKH H[DP V\OODEXV 7KLV KHOSV FDQGLGDWHV VWD\ XS WR GDWH ZLWK WKH H[DP FRQWHQW DQG LQFUHDVHV WKHLU FKDQFHV RI VXFFHVV 7HFKQLFDO 6XSSRUW .LOOH[DPV FRP SURYLGHV IUHH [ WHFKQLFDO VXSSRUW WR DVVLVW FDQGLGDWHV ZLWK DQ\ TXHULHV RU LVVXHV WKH\ PD\ HQFRXQWHU ZKLOH XVLQJ WKHLU VHUYLFHV 7KHLU FHUWLILHG H[SHUWV DUH DYDLODEOH WR SURYLGH JXLGDQFH DQG KHOS FDQGLGDWHV WKURXJKRXW WKHLU H[DP SUHSDUDWLRQ MRXUQH\ 'PS .PSF FYBNT WJTJU IUUQT LJMMFYBNT DPN WFOEPST FYBN MJTU .LOO \RXU H[DP DW )LUVW $WWHPSW *XDUDQWHHG