Download Android Application Development.AND-401.PracticeTest.2019-07-13.136q.vcex

Vendor: Android
Exam Code: AND-401
Exam Name: Android Application Development
Date: Jul 13, 2019
File Size: 278 KB

How to open VCEX files?

Files with VCEX extension can be opened by ProfExam Simulator.

Purchase
Coupon: EXAM_HUB

Discount: 20%

Demo Questions

Question 1
Which of the following Activity life-cycle methods is called once the activity is no longer visible?
  1. onStop
  2. onPause
  3. onDestroy
  4. onHide
Correct answer: A
Explanation:
References:Android ATC Self Study Guide http://www.androidatc.com/pages-19/Self-Study
References:
Android ATC Self Study Guide http://www.androidatc.com/pages-19/Self-Study
Question 2
Which of the following is a correct Android Manifest statement? 
  1. <uses-permission android:name =”android.Internet”/>
  2. <uses-permission android:name =”android.Internet”></uses-permission>
  3. <uses-permission android:name =”android.permission.Internet”>
  4. <uses-permission android:name =”android. permission .Internet”/>
Correct answer: D
Explanation:
References:Android ATC Self Study Guide http://www.androidatc.com/pages-19/Self-Study
References:
Android ATC Self Study Guide http://www.androidatc.com/pages-19/Self-Study
Question 3
Which of the following is true about attribute android:windowSoftInputMode of the <activity> tag in file AndroidManifest.xml?
  1. It specifies whether the window is in full screen or not
  2. It adjusts how the main window of the activity interacts with keyboard
  3. It adjusts how the window should be launched
  4. It adjusts the window orientation
Correct answer: B
Explanation:
References:Android ATC Self Study Guide http://www.androidatc.com/pages-19/Self-Study
References:
Android ATC Self Study Guide http://www.androidatc.com/pages-19/Self-Study
Question 4
Which of the following tools dumps system log messages including stack traces when the device or emulator throws an error?
  1. DDMS
  2. Logcat
  3. Console
  4. ADB
Correct answer: B
Explanation:
References:Android ATC Self Study Guide http://www.androidatc.com/pages-19/Self-Study
References:
Android ATC Self Study Guide http://www.androidatc.com/pages-19/Self-Study
Question 5
Javascript is enabled by default in a WebView
  1. True
  2. False 
Correct answer: B
Explanation:
If the web page you plan to load in your WebView use JavaScript, you must enable JavaScript for your WebView. References:http://developer.android.com/guide/webapps/webview.html
If the web page you plan to load in your WebView use JavaScript, you must enable JavaScript for your WebView. 
References:
http://developer.android.com/guide/webapps/webview.html
Question 6
How to enable JavaScript in WebView?
  1. myWebView. setJavaScriptEnabled(true);
  2. myWebView.getJavaScriptSettings.setEnabled(true)
  3. myWebView.getSettings().setJavaScriptEnabled(true);
  4. Java script is always enabled in WebView
Correct answer: C
Explanation:
JavaScript is disabled in a WebView by default. You can enable it through the WebSettings attached to your WebView. You can retrieve WebSettings with getSettings(), then enable JavaScript with setJavaScriptEnabled(). For example:WebView myWebView = (WebView) findViewById(R.id.webview); WebSettings webSettings = myWebView.getSettings(); webSettings.setJavaScriptEnabled(true); References:http://developer.android.com/guide/webapps/webview.html
JavaScript is disabled in a WebView by default. You can enable it through the WebSettings attached to your WebView. You can retrieve WebSettings with getSettings(), then enable JavaScript with setJavaScriptEnabled(). 
For example:
WebView myWebView = (WebView) findViewById(R.id.webview); 
WebSettings webSettings = myWebView.getSettings(); 
webSettings.setJavaScriptEnabled(true); 
References:
http://developer.android.com/guide/webapps/webview.html
Question 7
What two methods you have to override when implementing Android context menus?
  1. onCreateOptionsMenu, onCreateContextMenu
  2. onCreateContextMenu, onContextItemSelected 
  3. onCreateOptionsMenu, onOptionsItemSelected
  4. onCreateOptionsMenu, onContextItemSelected
Correct answer: B
Explanation:
need to create context menu. For this need to override this method:@Override public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {     super.onCreateContextMenu(menu, v, menuInfo);     menu.setHeaderTitle("My Context Menu");     menu.add(0, NEW_MENU_ITEM, 0, "new");     menu.add(0, SAVE_MENU_ITEM, 1, "save"); } And last one need to handle menu clicks:@Override public boolean onContextItemSelected(MenuItem item) {     switch (item.getItemId()) {     case NEW_MENU_ITEM:        doSomething();         break;     case SAVE_MENU_ITEM:        doSomething();         break;     }     return super.onContextItemSelected(item); } References:https://thedevelopersinfo.wordpress.com/2009/11/06/using-context-menus-in-android/
need to create context menu. For this need to override this method:
@Override 
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { 
    super.onCreateContextMenu(menu, v, menuInfo); 
    menu.setHeaderTitle("My Context Menu"); 
    menu.add(0, NEW_MENU_ITEM, 0, "new"); 
    menu.add(0, SAVE_MENU_ITEM, 1, "save"); 
And last one need to handle menu clicks:
@Override 
public boolean onContextItemSelected(MenuItem item) { 
    switch (item.getItemId()) { 
    case NEW_MENU_ITEM:
        doSomething(); 
        break; 
    case SAVE_MENU_ITEM:
        doSomething(); 
        break; 
    } 
    return super.onContextItemSelected(item); 
References:
https://thedevelopersinfo.wordpress.com/2009/11/06/using-context-menus-in-android/
Question 8
What two methods you have to override when implementing Android option menus?
  1. onCreateOptionsMenu, onCreateContextMenu
  2. onCreateContextMenu, onContextItemSelected
  3. onCreateOptionsMenu, onOptionsItemSelected 
  4. onCreateOptionsMenu, onContextItemSelected
Correct answer: C
Explanation:
To specify the options menu for an activity, override onCreateOptionsMenu(). When the user selects an item from the options menu (including action items in the app bar), the system calls your activity's onOptionsItemSelected() method. This method passes the MenuItem selected. You can identify the item by calling getItemId(), which returns the unique ID for the menu item (defined by the android:id attribute in the menu resource or with an integer given to the add() method). You can match this ID against known menu items to perform the appropriate action. For example:@Override public boolean onOptionsItemSelected(MenuItem item) { Etc. References:http://developer.android.com/guide/topics/ui/menus.html
To specify the options menu for an activity, override onCreateOptionsMenu(). 
When the user selects an item from the options menu (including action items in the app bar), the system calls your activity's onOptionsItemSelected() method. This method passes the MenuItem selected. You can identify the item by calling getItemId(), which returns the unique ID for the menu item (defined by the android:id attribute in the menu resource or with an integer given to the add() method). You can match this ID against known menu items to perform the appropriate action. 
For example:
@Override 
public boolean onOptionsItemSelected(MenuItem item) { 
Etc. 
References:
http://developer.android.com/guide/topics/ui/menus.html
Question 9
Which of the following is a call-back method that inflates an options menu from file res/menu/menu.xml?
  1. onOptionsItemSelected
  2. onCreate
  3. onCreateMenu
  4. onCreateOptionsMenu
Correct answer: D
Explanation:
To specify the options menu for an activity, override onCreateOptionsMenu() (fragments provide their own onCreateOptionsMenu() callback). In this method, you can inflate your menu resource (defined in XML) into the Menu provided in the callback. For example:@Override public boolean onCreateOptionsMenu(Menu menu) {     MenuInflater inflater = getMenuInflater();     inflater.inflate(R.menu.game_menu, menu);     return true; } References:http://developer.android.com/guide/topics/ui/menus.html
To specify the options menu for an activity, override onCreateOptionsMenu() (fragments provide their own onCreateOptionsMenu() callback). In this method, you can inflate your menu resource (defined in XML) into the Menu provided in the callback. For example:
@Override 
public boolean onCreateOptionsMenu(Menu menu) { 
    MenuInflater inflater = getMenuInflater(); 
    inflater.inflate(R.menu.game_menu, menu); 
    return true; 
References:
http://developer.android.com/guide/topics/ui/menus.html
Question 10
Which of the following Activity methods is invoked when the user clicks on an options menu item?
  1. onItemClicked
  2. onItemSelected
  3. onOptionsItemClicked
  4. onOptionsItemSelected
Correct answer: D
Explanation:
When the user selects an item from the options menu (including action items in the app bar), the system calls your activity's onOptionsItemSelected() method. References:http://developer.android.com/guide/topics/ui/menus.html
When the user selects an item from the options menu (including action items in the app bar), the system calls your activity's onOptionsItemSelected() method. 
References:
http://developer.android.com/guide/topics/ui/menus.html
HOW TO OPEN VCE FILES

Use VCE Exam Simulator to open VCE files
Avanaset

HOW TO OPEN VCEX AND EXAM FILES

Use ProfExam Simulator to open VCEX and EXAM files
ProfExam Screen

ProfExam
ProfExam at a 20% markdown

You have the opportunity to purchase ProfExam at a 20% reduced price

Get Now!