Android AND-401 - Android Application Development Exam

Question #6 (Topic: )
Consider the following AndroidManifest.xml file:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="mycube.test"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@android:style/Theme.Light.NoTitleBar" >
<activity android:name=".Menu"
android:screenOrientation="portrait"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<activity android:name=".Compute" android:screenOrientation="portrait" />
</manifest>
What is the syntax error of this file?
A. The INTERNET permission must be removed. B. Tag uses-sdk must have attribute android:maxSdkVersion set. C. the package name must be “com.mycube.test”. D. The <activity> tag for Activity “.Compute” should be contained inside <application> tag.
Answer: C
Question #7 (Topic: )
Which of the following tools dumps system log messages including stack traces when the
device or emulator throws an error?
A. DDMS B. Logcat C. Console D. ADB
Answer: B
Question #8 (Topic: )
What two methods you have to override when implementing Android context menus?
A. onCreateOptionsMenu, onCreateContextMenu B. onCreateContextMenu, onContextItemSelected C. onCreateOptionsMenu, onOptionsItemSelected D. onCreateOptionsMenu, onContextItemSelected
Answer: B
Question #9 (Topic: )
You can create a custom view by extending class Activity.
A. True B. False
Answer: B
Question #10 (Topic: )
What does the Android project folder “res/” contain?
A. Java Activity classes B. Resource files C. Java source code D. Libraries
Answer: B
Download Exam
Page: 2 / 26
Total 129 questions