Android Multiple Choice Question and Answers | online Test |
Android Multiple Choice Questions and Answers
☆ Top Companies CEOs in the world 2021 Current Affairs in Hindi
1. When contentProvider would be activated?
A. using Intent
B. using SQLite
C. using ContentResolver
D. none of the above
A. object
B. context
C. activityGroup
D. contextThemeWrapper
3. Once installed on a device, each Android application exists in_______?
A. device memory
B. external memory
C. security sandbox
D. none of the above
4. What are the Direct subclasses of Activity?
A. ListActivity
B. ActivityGroup
C. FragmentActivity
D. All the above
5. Which is the screen densities in Android?
A. low density
B. medium density
C. extra high density
D. all of the above
6. You can shut down an active
A. onClick
B. onStar
C. finish()
D. none of the
7. Which one is ANR in android?
A. Dialog box
B. Application Not Responding
C. Android Not Responding
D. None
8. Which of the following is Layouts in android?
A. Frame Layout
B. Linear Layout
C. Relative Layout
D. All of the above
9. How many ways to start services?
A. started
B. bound
C. both a & b
D. messenger
10. What is/are the JSON elements in android?
A. integer, boolean
B. boolean
C. null
D. Number, string, boolean, null, array and object.
11. If you need your interface to work across different processes, you can create an interface for the service
with a ________?
A. Binder
B. Messenger
C. AIDL
D. Either b or c
12. If you want share the data across the all applications ,you should go for?
A. Shared Preferences
B. Content provider
C. Internal Storage
D. SQLite Databases
13. Which of the following is Dialog classes in android?
A. AlertDialog
B. ProgressDialog
C. DatePickerDialog
D. All of the above
14. When the activity is not in focus, but still visible on the screen it is in?
A. running state
B. stopped state
C. paused state
D. destroyed state
15. The XML file that contains all the text that your application uses.
A. stack.xml
B. text.xml
C. strings.xml
D. string.java
16. Android tries to _____low-level components, such as the software stack, with interfaces so that vendor-
specific code can be managed easily.
A. confound
B. absract
C. modularize
D. compound
17. What is the name of the program that converts Java byte code into Dalvik byte code?
A. Android Interpretive Compiler (AIC)
B. Dalvik Converter
C. Dex compiler
D. Mobile Interpretive Compiler (MIC)
18. The Emulator is identical to running a real phone EXCEPT when emulating/simulating what?
A. Telephony
B. Applications
C. Sensors
D. The emulator can emulate/simulate all aspects of a smart phone.
19. Which of these are not one of the three main components of the APK?
A. Dalvik Executable
B. Resources
C. Native Libraries
D. Webkit
20. While developing Android applications, developers can test their apps on
A. Emulator included in Android SDK
B. Physical Android phone
C. Third-party Emulators
D. All the above
21. Which piece of code used in Android is not open source?
A. Keypad driver
B. WiFi driver
C. Audio driver
D. Power management
22. What year was the Open Handset Alliance announced?
A. 2005
B. 2006
C. 2007
D. 2008
23. Creating a UI in Android requires careful use of
A. Java and SQL
B. XML and Java
C. XML and C++
D. Dream weaver
24. Status data will be exposed to the rest of the Android system via
A. Intents
B. A content provider
C. Network receivers
D. Altering permissions
25. . What is the driving force behind an Android application and that ultimately gets converted into a Dalvik
executable?
A. Java source code
B. R-file.
C. The emulator
D. The SDK
26. Intents are used to __________
A. are messages that are sent among major building blocks
B. trigger activities to being, services to start or stop, or broadcast
C. are asynchronous
D. all of those
27. What built-in database is Android shipped with?
A. SQLite
B. Apache
C. MySQL
D. Oracle
28. Which of the following is NOT a state in the lifecycle of a service?
A. Starting
B. Running
C. Destroyed
D. Paused
29. What does the .apk extension stand for?
A. Application Package
B. Application Program Kit
C. Android Proprietary Kit
D. Android Packaging Kit
30. What is contained within the manifest xml file?
A. The permissions the app requires
B. The list of strings used in the app
C. The source code
D. All the above
31. What is contained within the Layout xml file?
A. Orientations and layouts that specify what the display looks like
B. The permissions required by the app
C. The strings used in the app
D. The code which is compiled to run the app
32. The ___________ file specifies the layout of your screen?
A. Layout file
B. Manifest file
C. Strings XML
D. R file
33. The android OS comes with many useful system services, which include processes you can easily ask for
things such as your.
A. Location
B. Sensor Readings
C. WiFi Hot Spots
D. All of these
34. What is an Activity?
A. A single screen the user sees on the device at one time
B. A message sent among the major building blocks
C. A component that runs in the background without any interface
D. Context referring to the application environment
35. To create an emulator, you need an AVD. What does it stand for?
A. Android Virtual Display
B. Android Virtual Device
C. Active Virtual Device
D. Application Virtual Display
36. Which of the following are not a component of an APK file?
A. Resources
B. Native Libraries
C. Dalvik executable
D. All of these are components of the APK
37. What runs in the background and does not have any UI components?
A. Intents
B. Content Providers
C. Services
D. Applications
38. What operating system is used as the base of the Android stack?
A. Linux
B. Windows
C. Java
D. XML
39. What is a thread in android?
A. Same as services
B. Background activity
C. Broadcast receiver
D. Independent dipatchable unit.
40. Android is licensed under which open source licensing ?
A. Gnu GPL
B. OSS
C. Apache/MIT
D. Sourceforge
41. Which of the following are UI elements that you can use in a window in an Android application?
A. TextBox
B. TextView
C. EditText
D. Both b&c
42. Which of the following are valid features that you can request using requestWindowFeature?
A. FEATURE_NO_TITLE
B. FEATURE_NO_ICON
C. FEATURE_RIGHT_ICON
D. Both a& c
43. The R file is a(an) generated file
A. Automatically
B. Manually
C. Emulated
D. none of the above
44. What is Android-dx?
A. A command line tool to create Android project files
B. A framework to create unit tests for Android projects
C. A tool to generate Android byte code from .class files
D. A resource editor to create user interface for Android applications
45. Immediate base class for activity and services
A. CONTEXT
B. APPLICATION CONTEXT
C. CONTEXTAPP
D. ONCREATE
46. Which of the following can be accomplished by using the TelephoneNumberUtil class?
A. Save a phone number to the contacts in the phone device
B. Retrieve a phone number from the contacts in the phone device
C. Delete a phone number from the contacts in the phone device
D. Format an international telephone number
47. Which of the following can you use to add items to the screen menu?
A. Activity.onCreateOptionsMenu
B. Activity.onCreate
C. Activity.onPrepareOptionsMenu
D. Both a&b
48. Which of the following can you use to display a progress bar in an Android application?
A. ProgressBar
B. ProgressDialog
C. ProgressView
D. Both a&b
49. What are return types of startActivityForResult() in android?
A. RESULT_OK
B. RESULT_CANCEL
C. RESULT_CRASH
D. BOTH A AND B
50. Which of the following is the parent class for the main application class in an Android application that has a user interface?
A. MIDLet
B. AndroidApp
C. Activity
D. AppLet
51. Which of the following is/are appropriate for saving the state of an Android application?
A. Activity.onFreeze()
B. Activity.onPause()
C. Activity.onStop()
D. Activity.onDestroy()
52. Which of the following should be used to save the unsaved data and release resources being used by an
Android application?
A. Activity.onStop()
B. Activity.onPause()
C. Activity.onDestroy()
D. Activity.onShutdown
53. What is the purpose of the ContentProvider class?
A. To play rich media content files
B. To create and publish rich media files
C. To share data between Android applications
D. To access the global information about an application environment
54. Which of the following would you have to include in your project to use the SimpleAdapter class?
A. import android.content
B. import android.widget
C. import android.database
D. import android.database.sqlite
55. Which of the following can be used to bind data from an SQL database to a ListView in an Android
application
A. SimpleCursor
B. SimpleCursorAdapter
C. SimpleAdapter
D. SQLiteCursor
56. What Activity method you use to retrieve a reference to an Android view by using the id attribute of a resource XML?
A. findViewByReference(int id);
B. findViewById(int id)
C. retrieveResourceById(int id)
D. findViewById(String id)
57. Which of the following is NOT a valid usage for Intents?
A. Activate an Activity
B. Activate a Service
C. Activate a Broadcast receiver
D. Activate SQLite DB Connection.
58. What is the name of the folder that contains the R.java file?
A. src
B. res
C. bin
D. gen
59. What is a correct statement about an XML layout file?
A. A layout PNG image file
B. A file used to draw the content of an Activity
C. A file that contains all application permission information
D. A file that contains a single activity widget.
60. Which file specifies the minimum required Android SDK version your application supports?
A. main.xml
B. R.java
C. strings.xml
D. AndroidManifest.xml
61. What is the parent class of all Activity widgets?
A. ViewGroup
B. Layout
C. View
D. Widget
62. What is the name of the class used by Intent to store additional information?
A. Extra
B. Parcelable
C. Bundle
D. DataStore
63. Which is not included in the Android application framework?
A. WindowManager
B. NotificationManager
C. DialerManager
D. PackageManager
64. What Eclipse plugin is required to develop Android application?
A. J2EE
B. Android Software Development Kit
C. Android Development Tools
D. Web Development Tools
65. Which of these files contains text values that you can use in your application?
A. AndroidManifest.xml
B. res/Text.xml
C. res/layout/Main.xml
D. res/values/strings.xml
66. What does the Android project folder res contain?
A. Java Activity classes
B. Resource files
C. Java source code
D. Libraries
67. . Which of the following Java call-back method is invoked when a view is clicked?
A. Detector
B. OnTapListener
C. OnClickDetector
D. OnClickListener
68. Which of the following Activity life-cycle methods is called once the activity is no longer visible?
A. onStop
B. onPause
C. onDestroy
D. onHide
69. The DalvikVM core libraries are a subset of which of the following?
A. Java ME
B. Java SE
C. Java EE
D. JAX-WS
70. 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
71. Which manifest file permission you should add to allow your application to read the device address book?
A. READ_ADDRESS_DATA
B. READ_PHONE_STATE
C. READ_PHONE_CONTACTS
D. READ_CONTACTS
72. You can create a custom view by extending class:
A. android.widget.View
B. android.widget.LinearLayout
C. android.view.View
D. android.content.Context
73. Which of the following Android View sub-classes uses the WebKit rendering engine to display web
pages?
A. PageView
B. WebView
C. MapView
D. HttpClient
74. 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( )
75. The values of which of the following classes cannot be mapped in a Bundle object?
A. Parcelable
B. String
C. ArrayList
D. Context
76. Which among these are NOT a part of Android native libraries?
A. Webkit
B. Dalvik
C. OpenGL
D. SQLite
77. __________ is the recommended way for sharing data across packages?
A. Content providers
B. Data persistence
C. Messaging
D. None
78. __________ stores data such as missed calls, call details and so on
A. Browser
B. Call log
C. Contacts
D. None
79. Which permissions are required to get a location in android?
A. ACCESS_FINE and ACCESS_COARSE
B. Internet permission
C. WIFI permission
D. GPRS permission
80. What is DDMS in android?
A. Dalvik Memory Server
B. Distributed Denial Memory Services
C. Dalvik Debug Monitor Server
D. None
81. The _________ class performs the cursor query on a background thread and hence does not block the application UI.
A. SimpleCursorAdapter
B. CursorLoader
C. CursorAdapter
D. None
82. __________ views are commonly used views such as the TextView, EditText and Button Views
A. Basic View
B. Picker view
C. Frame view
D. None
83. ___________ are the views that enable users to select from a list, such as Date and Time picker views.
A. Picker view
B. Basic view
C. List view
D. None
84. _____________ are views that display a long list of items.
A. Specialised fragments
B. List view
C. Frame view
D. None
85. In order to automatically adjust to fit the content, the layout_height must be set to __________
A. wrap content
B. fill parent
C. X and Y coordinate
D. none
86. The _______ attribute is an identifier for a view so that it may later be retrieved using the
View.findViewById method.
A. id
B. X axis
C. Y axis
D. None
87. What is JSON in android?
A. Java Script Object Native
B. Java Script Oriented Notation
C. Java Script Object Notation
D. None
88. What is singleton class in android?
A. Class that can create only one object
B. Anonymous class
C. Java class
D. Manifest file
89. . ___________ is an object carrying a message from one component to another component with in the application.
A. Intent
B. Filters
C. Activity
D. Services
90. _________ is a view group that aligns all children in a single direction, vertically or horizontally.
A. Linear layout
B. Relative layout
C. Table layout
D. Absolute layout.
91. ___________ is a view group that displays child views in relative positions
A. Table layout
B. Linear layout
C. Relative layout
D. None
92. ___________ layout enables you to specify the exact location of the children
A. Frame
B. List
C. Table
D. Absolute
93. ______________ is designed to block out an area on the screen to display a single item
A. Frame layout
B. Table layout
C. Linear layout
D. Absolute layout.
94. An _______ actually bridges between UI components and the data source that fill data into UI component.
A. Cursor
B. Adapter
C. Database
D. None
95. _________ is a pre defined subclass of textview that includes rich editing capabilities.
A. Button
B. Textview
C. Edittext
D. None
96. ___________ is used when presenting users with a group of selectable options that are not mutually
exclusive.
A. Check Box
B. Toggle button
C. Radio button
D. None.
97. The _________ view provides visual feedback about some ongoing tasks, such as performing a task in a background.
A. Spinner
B. Image button
C. Toggle button
D. Progress bar
98. Which of the following is the most resource hungry part of dealing with Activities on Android
A. Closing an app
B. Suspending an app
C. Opening a new app
D. Restoring the most recent app
99. Which component is not activated by an Intent?
A. activity
B. services
C. content provider
D. broadcast receiver
100. Which of the important device characteristics that you should consider as you design and develop your application?
A. Screen size and density
B. Input configurations
C. Device features
D. All of the above
101. Which are the screen sizes in Android?
A. Small
B. Normal
C. Large
D. All of the above
102. How to stop the services in android?
A. onDestory()
B. finishActivity()
C. stopSelf()
D. None of the above
103. What is the difference between Activity context and Application Context?
A. The Activity instance is tied to the lifecycle of an Activity. while the application instance is tied to the
lifecycle of the application
B. The Activity instance is tied to the lifecycle of the application, while the application instance is tied to the lifecycle of an Activity.
C. The Activity instance is tied to the lifecycle of the Activity, while the application instance is tied to the lifecycle of an application.
D. None of the above
104. What is the time limit of broadcast receiver in android?
A.15 seconds
B.5 seconds
C. 1 hour
D.10 seconds
105. What is AIDL in android?
A. Android Interface Design Language
B. Android Interface Development Language
C. Android Interface Definition Language
D. Android Interface Debug Language
106. If you want share the data accross the all applications ,you should go for?
A. Shared Preferences
B. Internal Storage
C. SQLite Databases
D. content provider
107. Difference between android api and google api?
A. The google API includes Google Maps and other Google-specific libraries. The Android one only includes core android libraries.
B. The google API one only includes core android libraries. The Android includes Google Maps and other Google-specific libraries.
C. None of the above.
D. Both a and b
108. ________ sets the gravity of the view or layout in its parent?
A. android:gravity
B. android:layout_gravity
C. android:weight
D. android:orientation
109. How to store heavy structured data in android?
A. Shared Preferences
B. Cursor
C. SQlite database
D. Not possible
110. Which features are considered while creating android application?
A. Screen Size
B. Input configuration
C. Platform Version
D. All of the above
111. What are the debugging techniques available in android?
A. DDMS
B. Breaking point
C. Memory profiling
D. None of the above.
112. What does httpclient.execute() returns in android?
A. Http entity
B. Http response
C. Http result
D. None of the above
113. What is fragment life cycle in android?
A. onReceive()
B. onCreate()
C. onAttach()
D. None of the above
114. What is transient data in android?
A. Permanent data
B. Secure data
C. Temporary data
D. Logical data
115. How to pass the data between activities in Android?
A. Intent
B. Content Provider
C. Broadcast receiver
D. None of the Above
116. What is the difference between margin and padding in android layout?
A. Margin is specifying the extra space left on all four sides in layout
B. Padding is used to offset the content of a view by specific px or dp
C. Both A and B are correct
D. None of the above
117. What is the life cycle of broadcast receivers in android?
A. send intent()
B. onRecieve()
C. implicitBroadcast()
D. sendBroadcast()
118. What is the application class in android?
A. A class that can create only an object
B. Anonymous class
C. Java class
D. Base class for all classes
119. What is a context in android?
A. It is an interface to store global information about an application
B. It is used to create new components.
C. Android has two contexts, those are getContext and getApplicationContext
D. All of the Above
120. What is android view group?
A. Collection of views and other child views It is used to pass the data between activities
B. It will fire at a future point of time.
C. Base class of building blocks
D. Layouts
121. What is splash screen in android?
A. Initial activity of an application
B. Initial service of an application
C. Initial method of an application
D. Initial screen of an application
122. To send an SMS message programmatically, you use the _________________ class.
A. SmsManager
B. scAddress
C. sendTextMessage()
D. SMSActiviy
123. What are Five Arguments to the sendTextMessage() method
A. destinationAddress
B. scAddress
C. deliveryIntent
D. all the above
124. PendingIntent objects to monitor the status of the _________________ process
A. message-sending
B. message-receiving
C. sendTextMessage()
D. smsManager
125. You can deploy the apk files in emulators and devices using the __________
A. adb.exe
B. platform-tools
C. adb -s emulator
D. none of the above
126. PendingIntent objects are created in ______________ method
A. onstart()
B. oncreate()
C. finish()
D. onReceive()
127. . In the onResume(), you will create and receive _________________
A. deliveredPI
B. PendingIntent
C. message
D. BroadcastReceiver
128. Within each BoardcastReceiver you override the __________ method to get the current result code.
A. onReceive()
B. onstart()
C. oncreate()
D. finish()
129. Using _______________ objects, you will get notified of message status
A. BoardcastReceiver
B. Context
C. PendingIntent
D. None
130. You can send SMS to multiple recipients by simply separating each phone number with a
A. period
B. semi-colon
C. comma
D. ampersand
131. To send message to the emulator, use _______________
A. Console
B. Thread
C. Logcat
D. DDMS
132. BoardcastReceiver enables your application to handle _____________ raised by other application.
A. Listener
B. flags
C. event
D. functions
133. Each SMS is stored in an object array in the _____ format
A. PDU
B. text
C. ascii
D. machine language
134. To ________________the content of message, you use the static createFromPdu() message
A. insert
B. extract
C. modify
D. delete
135. How many broadcast receivers are available in android?
A. sendIntent()
B. onRecieve()
C. implicit Broadcast()
D. sendBroadcast(), sendOrderBroadcast(),and sendStickyBroadcast().
136. On which thread, services work in android?
A. Worker thread
B. Main thread
C. Own thread
D. None
137. ___________________ method enables to bind the data.
A. onDestroy()
B. onStartCommand()
C. onBind()
D. onStart()
138. Which method give access to member and methods inside the service?
A. onBind()
B. StartService()
C. StopService()
D. none
139. In the following,which will help you to run the service until it is explicitly stopped.
A. CONTINUE_STICKY
B. STOP_STICJY
C. START_STCIKY
D. KILL_STICKY
140. If you want your service available to other applications, you can always add an _______________
A. intent filter
B. Intent
C. getBaseContext()
D. none of the above
141. _____________ class will execute task asynchouronously with your service.
A. SyncTask
B. AsyncTask
C. Both a and b
D. None of the above
142. All layout classes are direct sub classes of________
A. java.lang.object
B. android.widget
C. android.view.Viewgroup
D. android.view.View
143. What is ADB in android?
A. Application Development Base
B. Android Developer Base
C. Android Development Base
D. Android Debug Bridge
144. What is GCM in android?
A. Google Message Pack
B. Google Count Messaging
C. Google Cloud Messaging
D. None of the above
145. _________________ class is a base class for service that handles asynchronous requests.
A. Intent Service
B. StartService
C. StopService
D. None of the above
146. In java you cannot directly cast an array from one type to another.
A. True.
B. False
C. Applies in all conditions
D. Applies in certain conditions only
ANSWER: A
147. To perform repeated tasks,we use _____________ class.
A. Timer
B. Post
C. Intent Service
D. onBind
ANSWER: A
148. The android:versionCode attribute represents the ___________ number of your application
A. Version
B. Application
C. VersionCode
D. None of the above
ANSWER: A
149. _________________ contains the versioning information that is visble to user.
A. VersionCode
B. Version Name
C. Icon
D. Label
ANSWER: B
150. ________________ attributes specifies the name of your application
A. Label
B. versionCode
C. versionName
D. None of the above
ANSWER: A
Comments
Post a Comment