Android MCQ Quiz Hub

Android Programming MCQ Set 1

Choose a topic to test your knowledge and improve your Android skills

1. The _____ is a possible media type value for the media attribute.




2. Which subclass of a Preference class displays a list of entries as a dialog?




3. What is an application component that can perform long-running operations in the background and does not provide a user interface?




4. What is the first method called in the Activity Lifecycle?




5. Which Virtual Machine (VM) does the android system use?




6. What is the brand name of Google's own line of Android smartphones?




7. Which of the following are a function of the manifest file?




8. Your Android application components are defined in the...




9. In order to specify layouts so that they adapt to any screen size, specify dimensions in:




10. Which of the following are versions of Android?




11. Which statement correctly changes content of a TextView named textLabel to show "Your Text"?




12. The Android Manifest file has what extension?




13. Which of the following are different types of Android application components?




14. Which of the following is used to detect when a user clicks or taps on a button?




15. Which of these widgets is an input box for a user to enter text?




16. Who can submit applications to the Marketplace?




17. What is the recommended IDE for Android by Google




18. If you wanted to store a name/value string pair for your Android application, which class would you use?




19. Which is NOT a default value used for a Toast length parameter?




20. The Android SDK tools compile your application into an Android application (.apk file) which...




21. In activity A if you start Activity B with result you should override




22. What is the main hardware platform of Android?




23. If your application uses the camera on an Android powered device, the following line should be in your manifest file




24. What is the proper order of life cycle methods called when an Activity is first run?




25. In which resource folder do we create an animation file ?




26. In order to be notified of a device switching from landscape to portrait view, you should:




27. How do you disable the scrollbars for a webview?




28. What permission does your application need to use the network?




29. What is the name of the main thread in Android




30. Which tag is used to add "Star Rating" in XML layout file?




31. Which layout is deprecated since version 2.3?




32. Every Android application runs in its own process...




33. What is the name of the new design guidelines given by Google ?




34. What are some examples of direct descendants of the android.view object?




35. What AIDL is?




36. Who is known as the 'Father' of Android?




37. Which of these is NOT a Layout derived from the ViewGroup class?




38. How do you get an intent data inside a fragment basically?




39. How can you assign a custom (NOT BUILT IN ANDROID) font typeface to a TextView?




40. Which of these ListAdapter subclasses is not a direct subclass of BaseAdapter?




41. Android applications can "borrow" functionality from other applications by using...




42. If the UI begins to behave sluggishly or crash while making network calls this is likely due to ....




43. Which of the following allows you to instantinate a LocationManager class?




44. Is it possible to reverse engineer an android application using the apk file alone without external app resources?




45. In order to get paired Bluetooth device list you need to :




46. What should you extend in case you need to apply a portion of code to your entire application?




47. if you want to access list of paired Bluetooth devices on Android, what should you do ?




48. Which of the following is NOT a subclass of TextView?




49. How to enable overlay mode On API level 11 or higher, to create a custom theme for your activity.




50. Which of the following is a public constructor for canvas?




51. How do you enable hardware acceleration in android?




52. Which service is used to perform IPC, when bind application to a service?




53. What permission is required for your application to use the device's vibrate hardware?




54. You can control process usage in your Android application by...




55. How do you display the Action Bar back button on all Android versions?




56. AppWidgetProvider is a subclass of




57. Which class MediaPlayer extends in android?




58. Which of the following is an Android class for the playback of sound?




59. how can you check if your activity is first on stack ?




60. What is the correct argument passed in the Array.sort() function




61. Which method can be called to destroy an activity?




62. Which of these run in a separate thread?




63. What does this layout show?




64. What is an Intent ?




65. What will be the result of this intent? Intent intent = new Intent(A.this, B.class); startActivityForResult(intent , -1);




66. Where is navigation drawer support available?




67. According to the Activity's lifecycle, how is named the first method callback of an Activity?




68. Which component does not exist in the android sdk ?