AND-401 Exam Questions
141 real AND-401 exam questions with expert-verified answers and explanations. Page 2 of 3.
- Question #52
Consider the following code: Intent i = new Intent(this, MainActivity.class); i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(i); What best explains the code above?
- Question #53
Which of the following lines of code is used to pass a value to the next activity?
- Question #54
Which of the following sets the entire Activity window as a WebView?
- Question #55
Consider the following the code: public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.game_menu, menu); return true; }...
- Question #56
Consider the following AndroidManifest.xml file: <?xml version="1.0" encoding="utf-8"?> package="com.mkyong.android" android:versionCode="1" android:versionName="1.0" > <uses-sdk a...
- Question #57
Which of these is the incorrect explanation regarding the private key when an application is published?
- Question #59
Of the size units which can be specified by Android, which is device independent?
- Question #60
Which class is not included in the android.net package?
- Question #61
Which of the following is a valid sequence of invokes to Activity lifecycle methods? (Select Two)
- Question #62
What method you should override to use Android menu system?
- Question #63
What Activity method you use to retrieve a reference to an Android view by using the id attribute of a resourceXML?
- Question #64
Which of the following is not an Android component (i.e. a point from which the system can enter yourapplication)?
- Question #65
During an Activity life-cycle, what is the first callback method invoked by the system?
- Question #66
Which configuration file holds the permission to use the internet?
- Question #67
What does the following line of code achieve? Intent intent = new Intent(FirstActivity.this, SecondActivity.class );
- Question #68
Which of the following is NOT a valid usage for Intents?
- Question #69
Which of the following is not a valid Android resource file name?
- Question #70
Which of these is not defined as a process state?
- Question #71
What is the name of the folder that contains the R.java file?
- Question #72
What is a correct statement about an XML layout file?
- Question #73
What is the name of the class used by Intent to store additional information?
- Question #74
Which is not included in the Android application framework?
- Question #75
What Eclipse plugin is required to develop Android application?
- Question #76
Cancreate a custom view by extending class Activity.
- Question #77
Which of these files contains text values that you can use in your application?
- Question #78
What does the Android project folder "res/" contain?
- Question #79
Which of the following is incorrect about the LogCat tool?
- Question #80
Which of the following information is not included in the Manifest file?
- Question #81
Which method should you use to start a sub-activity?
- Question #82
Which package of the following does not have classes needed for Android network connections?
- Question #83
Which of the following tools creates certificates for signing Android applications?
- Question #84
Which manifest file permission you should add to allow your application to read the device's address book?
- Question #85
You can create a custom view by extending class:
- Question #86
In which Activity life-cycle method you should do all of your normal static set up such as: creating views andbind data to lists?
- Question #87
Which of the following lines of code starts activity Activity2 from a current activity Activity1?
- Question #88
Which of the following methods is called in an Activity when another activity gets into the foreground?
- Question #89
Which of the following attributes is used to set an activity screen to landscape orientation?
- Question #90
What does this code do? Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW); startActivity(intent);
- Question #91
Which of the following is a Java call-back method invoked when a view is clicked?
- Question #92
Which of the following is not an Activity lifecycle call-back method?
- Question #93
Which method is used to close an activity?
- Question #94
Which of the following Activity life-cycle methods is called once the activity is no longer visible?
- Question #95
Which of the following is a correct Android Manifest statement?
- Question #96
Which of the following is true about attributeandroid:windowSoftInputMode of the <activity> tag in file AndroidManifest.xml?
- Question #97
Which of these is the incorrect explanation of ddms?
- Question #98
Which component can be used without configuring the AndroidManifest.xml?
- Question #99
How to enable JavaScript in WebView?
- Question #100
What two methods you have to override when implementing Android context menus?
- Question #101
Which of the following is NOT true about class AsyncTask?
- Question #102
What does the following line of code do? Toast toast = Toast.makeText(this,"Android ATC", Toast.LENGTH_LONG); toast.setGravity(Gravity.TOP|Gravity.RIGH, 0, 0);