Android AND-401 Exam Questions
Android Application Development (Page 7 )

Updated On: 17-Feb-2026

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”/>

Answer(s): D


Reference:

Android ATC Self Study Guide http://www.androidatc.com/pages-19/Self-Study



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

Answer(s): B


Reference:

Android ATC Self Study Guide http://www.androidatc.com/pages-19/Self-Study



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

Answer(s): B


Reference:

Android ATC Self Study Guide http://www.androidatc.com/pages-19/Self-Study



Javascript is enabled by default in a WebView

  1. True
  2. False

Answer(s): B

Explanation:

If the web page you plan to load in your WebView use JavaScript, you must enable JavaScript for your WebView.


Reference:

http://developer.android.com/guide/webapps/webview.html



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

Answer(s): 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);


Reference:

http://developer.android.com/guide/webapps/webview.html






Post your Comments and Discuss Android AND-401 exam dumps with other Community members:

Join the AND-401 Discussion