Which of the following methods updates a ListView when an element is added to the data set?
A. notify()
B. notifyAll()
C. notifyDataSetChanged()
D. notifyDataSetInvalidate()
Consider the following AndroidManifest.xml file.
package="com.androidatc " android:versionCode="1" android:versionName="1.0" > android:minSdkVersion="12" android:targetSdkVersion="17" /> android:name="MyApp " android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > android:name="com.androidatc.MainActivity" android:label="@string/app_name" android:screenOrientation="portrait" >
Which of the following is correct?
A. The application will run as intended.
B. The application will not compile.
C. The application will crash on fetching data from the internet.
D. The app will run in Landscape orientation.
Which of the following classes should be extended to create a custom view?
A. View
B. ViewGroup
C. Context
D. Activity
What two methods you have to override when implementing Android option menus?
A. onCreateOptionsMenu, onCreateContextMenu
B. onCreateContextMenu, onContextItemSelected
C. onCreateOptionsMenu, onOptionsItemSelected
D. onCreateOptionsMenu, onContextItemSelected
Which Which of the following is true about method startActivity?
A. It starts a new activity and destroys the previous one.
B. It starts a new activity and sends the previous one to the background.
C. It starts a new activity and pauses the previous one.
D. It starts a new activity in a paused mode.
Which of the following is not a ContentProvider provided natively by Android?
A. The contacts list
B. The telephone log
C. The bookmarks
D. The application list
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
Which of the following is NOT true about class ListActivity?
A. An activity that displays a list of items by binding to a data set.
B. Its layout must be set by calling method setContentView inside onCreate.
C. It contains a ListView object that can be bound to different data sets. Binding, screen layout, and row layout are discussed in the following sections.
D. A data source that can be bound in a ListActivity can be an array or Cursor holding query results.
Which of the following makes a ListView Clickable?
A. setClickable(true)
B. setVisibility(View.Visible)
C. setEnabled(true)
D. setItemsEnabled(true)
Check the following image which includes Android code for a sum calculator. Which of the following choices is correct about this Android code?
A. The sum result will not appear on the app until adding another print out method.
B. The sum result of N1 and N2 will appear in result_view TextView widget when the user clicks button_sum button.
C. The sum result will not work, because N1 and N2 must be changed to Integer first.
D. You must add input method to this code to enter the value of N1 and N2 numbers.