Validated of AND-401 practice exam materials and questions for Android certification for IT professionals, Real Success Guaranteed with Updated AND-401 pdf dumps vce Materials. 100% PASS Android Application Development exam Today!

2021 Aug AND-401 test engine

Q1. Which of the following classes is used by Intent to transfer data between different android components? 

A. Extras 

B. Bundle 

C. Parcelable 

D. PendingIntent 

Answer: B 


Q2. Method onDraw() of class android.view.View has the following signature: 

A. public void onDraw(Color) 

B. public void onDraw(Canvas) 

C. public boolean onDraw(Canvas) 

D. public Canvas onDraw() 

Answer: B 


Q3. When publishing an update to your application to the market, the following must be taken into consideration: 

A. The package name must be the same, but the .apk may be signed with a different private key. 

B. The package name does not have to be the same and the .apk can be signed with a different private key. 

C. The package name must be the same and the .apk must be signed with the same private key. 

D. The package name does not have to be the same, but the .apk must be signed with the same private key. 

Answer: C 


Q4. 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 


Q5. 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 


AND-401 practice

Renewal AND-401 free practice exam:

Q6. What is the second layer from top called in the following diagram of Android’s Architecture Exhibit: 

A. Applications layer. 

B. Application framework. 

C. Linux kernel. 

D. Android runtime. 

Answer: B 


Q7. Which of the following methods updates a ListView when an element is added to the data set? 

A. notify() 

B. notifyAll() 

C. notifyDataSetChanged() 

D. notifyDataSetInvalidate() 

Answer: C 


Q8. Which of the following is correct about file access in the Android system? 

A. Generally, files are handled as dedicated resources per each application. 

B. Files created by an application can be directly accessed by any application. 

C. The content of file created by application cannot be accessed by any other application. 

D. You can only access a file from within an Activity. 

Answer: A 


Q9. Which of the following is a NOT valid form of notification invoked by the NotificationManager? 

A. A Flashing LED. 

B. A persistent icon in the status bar. 

C. A sound played. 

D. A SMS sent. 

Answer: D 


Q10. Which of the following is not true about using a WebView in your application? 

A. You can retrieve WebSettings with getSettings(), then enable/disable JavaScript. 

B. You need to add permission “android.permission.ACCESS_NETWORK_STATE”. 

C. You use loadURL to load a webpage. 

D. You use loadData to load HTML. 

Answer: B