nerdexam
Android

AND-401 · Question #136

Consider the following AndroidManifest.xml file. <?xml version="1.0" encoding="utf-8"?> package="com.androidatc " android:versionCode="1" android:versionName="1.0" > <uses-sdk…

The correct answer is B. The application will not compile. See the full explanation below for the reasoning.

Question

Consider the following AndroidManifest.xml file. <?xml version="1.0" encoding="utf-8"?> package="com.androidatc " android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="12" android:targetSdkVersion="17" /> <application android:name="MyApp " android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity android:name="com.androidatc.MainActivity" android:label="@string/app_name" android:screenOrientation="portrait" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <uses-permission android:name="android.permission.INTERNET" /> </application> </manifest> Which of the following is correct?

Options

  • AThe application will run as intended.
  • BThe application will not compile.
  • CThe application will crash on fetching data from the internet.
  • DThe app will run in Landscape orientation.

How the community answered

(60 responses)
  • A
    12% (7)
  • B
    82% (49)
  • C
    5% (3)
  • D
    2% (1)

Community Discussion

No community discussion yet for this question.

Full AND-401 Practice