AND-401

AND-401 practice questions, page 6 of 9, with answer review and explanations.

Question 26

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

Question 27

Which of the following is true about attribute android:windowSoftInputMode of the 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

Question 28

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

Question 29

Javascript is enabled by default in a WebView

  1. True
  2. False

Question 30

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