• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps please help me out with this questions related to android application development.

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:
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?
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?
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?
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.

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?
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.





 
That looks like course work, and you don't learn by having someone give you the answers.
 
@rukbat... i am not an experienced developer... and i want these questions because i to get the answers for a long time... i reffered many books... bt not still... help me out !! i am storing all the questions that i get !!
 
The questions are related to APIs which can be found in Android developer site. I will give you the answers but I recommend you to search for clarifications.
Q1. b
Q2. b
Q3. a, f
Q4. It has to ACTION_CALL and ACTION_DIAL. c and e
Q5. a
Q6. c
 
Back
Top Bottom