praveen 11795
Newbie
1. Which of the following are true about enabling/disabling menu items from an Activity class?
a. onCreateOptionsMenu can be used to enable/disable some menu items in an Android application.
b. onPrepareOptionsMenu can be used to enable/disable some menu items in an Android application.
c. onShowOptionsMenu can be used to enable/disable some menu items in an Android application.
d. The menu items in an Android application cannot be disabled.
2. Consider the XML fragment below, which is taken from one of the files in an Android project:
b. onPrepareOptionsMenu can be used to enable/disable some menu items in an Android application.
c. onShowOptionsMenu can be used to enable/disable some menu items in an Android application.
d. The menu items in an Android application cannot be disabled.
2. Consider the XML fragment below, which is taken from one of the files in an Android project:
android:layout_width = "fill_parent"
android:layout_height = "fill_parent"
android:text = "Some Text">
Which of the following are true about the XML fragment above?android:layout_height = "fill_parent"
android:text = "Some Text">
a. It is taken from the manifest xml file of the Android project.
b. It is taken from an XML file used to define a view.
c. It is taken from the package file (.apk) of the Android project.
d. The xmlns: attribute is a compulsory attribute.
e. If this is not the outer most tag in the XML file then it need not contain the xmlns: attribute.
f. MyElement should be the name of a class derived, directly or indirectly, from the View class.
3. Which of the following are true?
b. It is taken from an XML file used to define a view.
c. It is taken from the package file (.apk) of the Android project.
d. The xmlns: attribute is a compulsory attribute.
e. If this is not the outer most tag in the XML file then it need not contain the xmlns: attribute.
f. MyElement should be the name of a class derived, directly or indirectly, from the View class.
3. Which of the following are true?
a. startActivity and startActivityForResult can both be used to start a new activity from your activity class.
b. Only startActivityForResult can be used to launch a new activity from your activity class.
c. startActivity(myIntent); and startActivityForResult(myIntent, -1); have the same result.
d. startActivity(myIntent); and startActivityForResult(myIntent, 0); have the same result.
e. When startActivity is used to launch a new activity from your activity class then your activity class gets notified when the new activity is completed.
f. When startActivityForResult is used to launch a new activity from your activity class then your activity class gets notified when the new activity is completed.
4. Which of the following are true about Intent.CALL_ACTION and Intent.DIAL_ACTION?
5. Which of the following can you use to display a progress bar in an Android application?
b. Only startActivityForResult can be used to launch a new activity from your activity class.
c. startActivity(myIntent); and startActivityForResult(myIntent, -1); have the same result.
d. startActivity(myIntent); and startActivityForResult(myIntent, 0); have the same result.
e. When startActivity is used to launch a new activity from your activity class then your activity class gets notified when the new activity is completed.
f. When startActivityForResult is used to launch a new activity from your activity class then your activity class gets notified when the new activity is completed.
4. Which of the following are true about Intent.CALL_ACTION and Intent.DIAL_ACTION?
a. Both of them are used to dial a phone number on the device.
b. Intent.action == Intent.CALL_ACTION is true when a phone call is received on the device.
c. Intent.action = Intent.CALL_ACTION is used when a phone number is to be dialled without showing a UI on the device.
d. Intent.action = Intent.DIAL_ACTION is used when a phone number is to be dialled without showing a UI on the device.
e. Intent.action = Intent.CALL_ACTION is used when a phone number is to be dialled without the user having to explicitly initiate the call.
f. Intent.action = Intent.DIAL_ACTION is used when a phone number is to be dialled without the user having to explicitly initiate the call.
b. Intent.action == Intent.CALL_ACTION is true when a phone call is received on the device.
c. Intent.action = Intent.CALL_ACTION is used when a phone number is to be dialled without showing a UI on the device.
d. Intent.action = Intent.DIAL_ACTION is used when a phone number is to be dialled without showing a UI on the device.
e. Intent.action = Intent.CALL_ACTION is used when a phone number is to be dialled without the user having to explicitly initiate the call.
f. Intent.action = Intent.DIAL_ACTION is used when a phone number is to be dialled without the user having to explicitly initiate the call.
5. Which of the following can you use to display a progress bar in an Android application?
a. ProgressBar
b. ProgressDialog
c. ProgressItem
6. What is the interface Spannable used for?
b. ProgressDialog
c. ProgressItem
6. What is the interface Spannable used for?
a. Manipulate text that can span across multiple pages.
b. Manipulate text that can span across multiple TextView windows.
c. This is the interface for text to which markup objects can be attached and detached.
d. String parsing.
b. Manipulate text that can span across multiple TextView windows.
c. This is the interface for text to which markup objects can be attached and detached.
d. String parsing.